| /freebsd-14.2/lib/libc/net/ |
| H A D | ip6opt.c | 327 for (optp = *tptrp; optp < lim; optp += optlen) { in inet6_option_find() 329 *tptrp = optp; in inet6_option_find() 447 optp++; in inet6_opt_append() 457 *optp++ = type; in inet6_opt_append() 458 *optp++ = len; in inet6_opt_append() 460 *databufp = optp; in inet6_opt_append() 524 switch(*optp) { in inet6_opt_next() 526 optp++; in inet6_opt_next() 531 optp += optlen; in inet6_opt_next() 536 *typep = *optp; in inet6_opt_next() [all …]
|
| /freebsd-14.2/bin/sh/ |
| H A D | options.c | 334 shellparam.optp = NULL; in setparam() 354 if (param->optp) { in freeparam() 355 for (ap = param->optp ; *ap ; ap++) in freeparam() 357 ckfree(param->optp); in freeparam() 438 if (shellparam.optp) { in getoptscmd() 439 for (ap = shellparam.optp ; *ap ; ap++) in getoptscmd() 441 ckfree(shellparam.optp); in getoptscmd() 442 shellparam.optp = NULL; in getoptscmd() 445 shellparam.optp = ckmalloc((argc - 2) * sizeof *ap); in getoptscmd() 448 shellparam.optp[i] = savestr(argv[i + 3]); in getoptscmd() [all …]
|
| H A D | options.h | 42 char **optp; /* parameter list for getopts */ member
|
| H A D | eval.c | 1026 shellparam.optp = NULL; in evalcommand()
|
| /freebsd-14.2/sys/netinet/ |
| H A D | tcp_output.c | 1817 *optp++ = TCPOPT_NOP; in tcp_addoptions() 1831 *optp++ = TCPOPT_NOP; in tcp_addoptions() 1843 *optp++ = TCPOPT_NOP; in tcp_addoptions() 1854 *optp++ = TCPOPT_NOP; in tcp_addoptions() 1874 *optp++ = TCPOPT_NOP; in tcp_addoptions() 1885 *optp++ = 0; in tcp_addoptions() 1896 *optp++ = TCPOPT_NOP; in tcp_addoptions() 1901 *optp++ = TCPOPT_SACK; in tcp_addoptions() 1929 *optp++ = total_len; in tcp_addoptions() 1946 *optp++ = TCPOPT_EOL; in tcp_addoptions() [all …]
|
| H A D | tcp_input.c | 613 u_char *optp = NULL; in tcp_input_with_port() local 798 optp = (u_char *)(th + 1); in tcp_input_with_port() 997 tcp_dooptions(&to, optp, optlen, in tcp_input_with_port() 1073 tcp_dooptions(&to, optp, optlen, 0); in tcp_input_with_port() 1346 tcp_dooptions(&to, optp, optlen, TO_SYN); in tcp_input_with_port() 1368 tcp_dooptions(&to, optp, optlen, thflags); in tcp_input_with_port()
|
| H A D | tcp_subr.c | 1802 u_char *optp; in tcp_respond() local 2002 optp = mtod(m->m_next, u_char *); in tcp_respond() 2007 optp = (u_char *) (nth + 1); in tcp_respond() 2024 tlen += optlen = tcp_addoptions(&to, optp); in tcp_respond()
|
| /freebsd-14.2/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-14.2/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 | 2007 u_char *optp = opts; in pf_normalize_mss() local 2017 for (; cnt > 0; cnt -= optlen, optp += optlen) { in pf_normalize_mss() 2018 startoff = optp - opts; in pf_normalize_mss() 2019 opt = optp[0]; in pf_normalize_mss() 2027 optlen = optp[1]; in pf_normalize_mss() 2033 mss = (u_int16_t *)(optp + 2); in pf_normalize_mss()
|
| /freebsd-14.2/sys/netinet6/ |
| H A D | raw_ip6.c | 349 struct ip6_pktopts opt, *optp; in rip6_send() local 406 optp = &opt; in rip6_send() 408 optp = inp->in6p_outputopts; in rip6_send() 416 if (!optp || !optp->ip6po_pktinfo || in rip6_send() 417 !optp->ip6po_pktinfo->ipi6_ifindex) in rip6_send() 462 error = in6_selectsrc_socket(dstsock, optp, inp, so->so_cred, in rip6_send() 535 error = ip6_output(m, optp, NULL, 0, inp->in6p_moptions, &oifp, inp); in rip6_send()
|
| H A D | udp6_usrreq.c | 659 struct ip6_pktopts *optp, opt; in udp6_send() local 780 optp = &opt; in udp6_send() 782 optp = inp->in6p_outputopts; in udp6_send() 811 error = in6_selectsrc_socket(sin6, optp, inp, in udp6_send() 931 error = ip6_output(m, optp, in udp6_send()
|
| H A D | ip6_output.c | 1813 struct ip6_pktopts **optp; in ip6_ctloutput() local 1825 optp = &inp->in6p_outputopts; in ip6_ctloutput() 1828 optp, (td != NULL) ? td->td_ucred : in ip6_ctloutput() 1948 struct ip6_pktopts **optp; in ip6_ctloutput() local 1954 optp = &inp->in6p_outputopts; in ip6_ctloutput() 1957 optp, (td != NULL) ? td->td_ucred : in ip6_ctloutput() 2022 struct ip6_pktopts **optp; in ip6_ctloutput() local 2046 optp = &inp->in6p_outputopts; in ip6_ctloutput() 2048 optp, (td != NULL) ? td->td_ucred : NULL, in ip6_ctloutput()
|
| H A D | ip6_input.c | 1135 ip6_unknown_opt(u_int8_t *optp, struct mbuf *m, int off) in ip6_unknown_opt() argument 1139 switch (IP6OPT_TYPE(*optp)) { in ip6_unknown_opt() 1141 return ((int)*(optp + 1)); in ip6_unknown_opt()
|
| /freebsd-14.2/usr.sbin/mld6query/ |
| H A D | mld6.c | 204 void *hbhbuf = NULL, *optp = NULL; in make_msg() local 281 2, &optp)) == -1) in make_msg() 284 (void)inet6_opt_set_val(optp, 0, &rtalert_code, sizeof(rtalert_code)); in make_msg()
|
| /freebsd-14.2/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-14.2/bin/ps/ |
| H A D | ps.c | 1392 char *argp, *cp, *newopts, *ns, *optp, *pidp; in kludge_oldps_options() local 1401 optp = strchr(optlist, *cp); in kludge_oldps_options() 1402 if ((optp != NULL) && *(optp + 1) == ':') { in kludge_oldps_options()
|
| /freebsd-14.2/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-14.2/usr.sbin/bsnmpd/tools/libbsnmptools/ |
| H A D | bsnmptools.c | 313 getsubopt1(char **arg, const char *const *options, char **valp, char **optp) in getsubopt1() argument 319 *optp = NULL; in getsubopt1() 329 *optp = ptr; in getsubopt1() 351 if (strcmp(*optp, *options) == 0) in getsubopt1()
|
| /freebsd-14.2/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-14.2/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()
|