/freebsd/lib/libc/net/ |
H A D | ip6opt.c | 298 u_int8_t *optp, *lim; in inet6_option_find() local 327 for (optp = *tptrp; optp < lim; optp += optlen) { in inet6_option_find() 328 if (*optp == type) { in inet6_option_find() 329 *tptrp = optp; in inet6_option_find() 332 if ((optlen = ip6optlen(optp, lim)) == 0) in inet6_option_find() 442 u_int8_t *optp = (u_int8_t *)extbuf + offset; in inet6_opt_append() local 446 *optp = IP6OPT_PAD1; in inet6_opt_append() 447 optp++; in inet6_opt_append() 451 *optp++ = IP6OPT_PADN; in inet6_opt_append() 452 *optp++ = padlen - 2; in inet6_opt_append() [all …]
|
/freebsd/bin/sh/ |
H A D | options.c | 336 shellparam.optp = NULL; in setparam() 356 if (param->optp) { in freeparam() 357 for (ap = param->optp ; *ap ; ap++) in freeparam() 359 ckfree(param->optp); in freeparam() 440 if (shellparam.optp) { in getoptscmd() 441 for (ap = shellparam.optp ; *ap ; ap++) in getoptscmd() 443 ckfree(shellparam.optp); in getoptscmd() 444 shellparam.optp = NULL; in getoptscmd() 447 shellparam.optp = ckmalloc((argc - 2) * sizeof *ap); in getoptscmd() 448 memset(shellparam.optp, '\0', (argc - 2) * sizeof *ap); in getoptscmd() [all …]
|
H A D | options.h | 40 char **optp; /* parameter list for getopts */ member
|
H A D | eval.c | 1020 shellparam.optp = NULL; in evalcommand()
|
/freebsd/sys/netinet/ |
H A D | tcp_output.c | 1806 tcp_addoptions(struct tcpopt *to, u_char *optp) in tcp_addoptions() argument 1819 *optp++ = TCPOPT_NOP; in tcp_addoptions() 1824 *optp++ = TCPOPT_MAXSEG; in tcp_addoptions() 1825 *optp++ = TCPOLEN_MAXSEG; in tcp_addoptions() 1827 bcopy((u_char *)&to->to_mss, optp, sizeof(to->to_mss)); in tcp_addoptions() 1828 optp += sizeof(to->to_mss); in tcp_addoptions() 1833 *optp++ = TCPOPT_NOP; in tcp_addoptions() 1838 *optp++ = TCPOPT_WINDOW; in tcp_addoptions() 1839 *optp++ = TCPOLEN_WINDOW; in tcp_addoptions() 1840 *optp++ = to->to_wscale; in tcp_addoptions() [all …]
|
H A D | tcp_input.c | 620 u_char *optp = NULL; in tcp_input_with_port() local 805 optp = (u_char *)(th + 1); in tcp_input_with_port() 1005 tcp_dooptions(&to, optp, optlen, in tcp_input_with_port() 1081 tcp_dooptions(&to, optp, optlen, 0); in tcp_input_with_port() 1354 tcp_dooptions(&to, optp, optlen, TO_SYN); in tcp_input_with_port() 1367 tcp_dooptions(&to, optp, optlen, thflags); in tcp_input_with_port()
|
H A D | tcp_subr.c | 1746 u_char *optp; in tcp_respond() local 1946 optp = mtod(m->m_next, u_char *); in tcp_respond() 1951 optp = (u_char *) (nth + 1); in tcp_respond() 1968 tlen += optlen = tcp_addoptions(&to, optp); in tcp_respond()
|
/freebsd/crypto/openssl/apps/ |
H A D | kdf.c | 51 static char *alloc_kdf_algorithm_name(STACK_OF(OPENSSL_STRING) **optp, in alloc_kdf_algorithm_name() argument 57 if (*optp == NULL) in alloc_kdf_algorithm_name() 58 *optp = sk_OPENSSL_STRING_new_null(); in alloc_kdf_algorithm_name() 59 if (*optp == NULL) in alloc_kdf_algorithm_name() 64 if (sk_OPENSSL_STRING_push(*optp, res)) in alloc_kdf_algorithm_name()
|
H A D | mac.c | 55 static char *alloc_mac_algorithm_name(STACK_OF(OPENSSL_STRING) **optp, in alloc_mac_algorithm_name() argument 61 if (*optp == NULL) in alloc_mac_algorithm_name() 62 *optp = sk_OPENSSL_STRING_new_null(); in alloc_mac_algorithm_name() 63 if (*optp == NULL) in alloc_mac_algorithm_name() 68 if (sk_OPENSSL_STRING_push(*optp, res)) in alloc_mac_algorithm_name()
|
/freebsd/sys/netpfil/pf/ |
H A D | pf_osfp.c | 99 const u_int8_t *optp; in pf_osfp_fingerprint_hdr() local 137 optp = (const u_int8_t *)((const char *)tcp + sizeof(*tcp)); in pf_osfp_fingerprint_hdr() 138 for (; cnt > 0; cnt -= optlen, optp += optlen) { in pf_osfp_fingerprint_hdr() 139 if (*optp == TCPOPT_EOL) in pf_osfp_fingerprint_hdr() 143 if (*optp == TCPOPT_NOP) { in pf_osfp_fingerprint_hdr() 150 optlen = optp[1]; in pf_osfp_fingerprint_hdr() 153 switch (*optp) { in pf_osfp_fingerprint_hdr() 156 memcpy(&fp.fp_mss, &optp[2], in pf_osfp_fingerprint_hdr() 164 memcpy(&fp.fp_wscale, &optp[2], in pf_osfp_fingerprint_hdr() 178 memcpy(&ts, &optp[2], sizeof(ts)); in pf_osfp_fingerprint_hdr()
|
H A D | pf_norm.c | 1942 u_char *optp = opts; in pf_normalize_mss() local 1952 for (; cnt > 0; cnt -= optlen, optp += optlen) { in pf_normalize_mss() 1953 startoff = optp - opts; in pf_normalize_mss() 1954 opt = optp[0]; in pf_normalize_mss() 1962 optlen = optp[1]; in pf_normalize_mss() 1968 mss = (u_int16_t *)(optp + 2); in pf_normalize_mss()
|
/freebsd/sys/netinet6/ |
H A D | raw_ip6.c | 357 struct ip6_pktopts opt, *optp; in rip6_send() local 414 optp = &opt; in rip6_send() 416 optp = inp->in6p_outputopts; in rip6_send() 424 if (!optp || !optp->ip6po_pktinfo || in rip6_send() 425 !optp->ip6po_pktinfo->ipi6_ifindex) in rip6_send() 470 error = in6_selectsrc_socket(dstsock, optp, inp, so->so_cred, in rip6_send() 543 error = ip6_output(m, optp, NULL, 0, inp->in6p_moptions, &oifp, inp); in rip6_send()
|
H A D | udp6_usrreq.c | 672 struct ip6_pktopts *optp, opt; in udp6_send() local 793 optp = &opt; in udp6_send() 795 optp = inp->in6p_outputopts; in udp6_send() 824 error = in6_selectsrc_socket(sin6, optp, inp, in udp6_send() 944 error = ip6_output(m, optp, in udp6_send()
|
H A D | ip6_output.c | 1833 struct ip6_pktopts **optp; in ip6_ctloutput() local 1845 optp = &inp->in6p_outputopts; in ip6_ctloutput() 1848 optp, (td != NULL) ? td->td_ucred : in ip6_ctloutput() 1968 struct ip6_pktopts **optp; in ip6_ctloutput() local 1974 optp = &inp->in6p_outputopts; in ip6_ctloutput() 1977 optp, (td != NULL) ? td->td_ucred : in ip6_ctloutput() 2042 struct ip6_pktopts **optp; in ip6_ctloutput() local 2066 optp = &inp->in6p_outputopts; in ip6_ctloutput() 2068 optp, (td != NULL) ? td->td_ucred : NULL, in ip6_ctloutput()
|
H A D | ip6_input.c | 1142 ip6_unknown_opt(u_int8_t *optp, struct mbuf *m, int off) in ip6_unknown_opt() 1146 switch (IP6OPT_TYPE(*optp)) { in ip6_unknown_opt() 1148 return ((int)*(optp + 1)); in ip6_unknown_opt() 1131 ip6_unknown_opt(u_int8_t * optp,struct mbuf * m,int off) ip6_unknown_opt() argument
|
/freebsd/usr.sbin/mld6query/ |
H A D | mld6.c | 203 void *hbhbuf = NULL, *optp = NULL; in make_msg() local 280 2, &optp)) == -1) in make_msg() 283 (void)inet6_opt_set_val(optp, 0, &rtalert_code, sizeof(rtalert_code)); in make_msg()
|
/freebsd/contrib/flex/src/ |
H A D | scanopt.c | 660 const optspec_t *optp; in scanopt() local 754 optp = s->options + opt_offset; in scanopt() 768 return optp->r_val; in scanopt() 785 return optp->r_val; in scanopt() 792 return optp->r_val; in scanopt()
|
/freebsd/bin/ps/ |
H A D | ps.c | 1353 char *argp, *cp, *newopts, *ns, *optp, *pidp; in kludge_oldps_options() local 1362 optp = strchr(optlist, *cp); in kludge_oldps_options() 1363 if ((optp != NULL) && *(optp + 1) == ':') { in kludge_oldps_options()
|
/freebsd/crypto/heimdal/appl/telnet/telnet/ |
H A D | externs.h | 213 int *prototp, int *optp);
|
H A D | commands.c | 2513 int *optp) in sourceroute() argument 2557 *optp = IP_OPTIONS; in sourceroute() 2568 *optp = IPV6_PKTOPTIONS; in sourceroute()
|
/freebsd/usr.sbin/bsnmpd/tools/libbsnmptools/ |
H A D | bsnmptools.c | 312 getsubopt1(char **arg, const char *const *options, char **valp, char **optp) in getsubopt1() argument 318 *optp = NULL; in getsubopt1() 328 *optp = ptr; in getsubopt1() 350 if (strcmp(*optp, *options) == 0) in getsubopt1()
|
/freebsd/contrib/bsnmp/snmpd/ |
H A D | main.c | 1464 getsubopt1(char **arg, const char *const *options, char **valp, char **optp) in getsubopt1() argument 1470 *optp = NULL; in getsubopt1() 1480 *optp = ptr; in getsubopt1() 1502 if (strcmp(*optp, *options) == 0) in getsubopt1()
|
/freebsd/contrib/telnet/telnet/ |
H A D | commands.c | 2849 sourceroute(struct addrinfo *ai, char *arg, unsigned char **cpp, int *lenp, int *protop, int *optp) in sourceroute() argument 2905 *optp = IPV6_RTHDR; in sourceroute() 2926 *optp = IP_OPTIONS; in sourceroute()
|