| /freebsd-13.1/lib/libc/net/ |
| H A D | ip6opt.c | 330 for (optp = *tptrp; optp < lim; optp += optlen) { in inet6_option_find() 332 *tptrp = optp; in inet6_option_find() 450 optp++; in inet6_opt_append() 460 *optp++ = type; in inet6_opt_append() 461 *optp++ = len; in inet6_opt_append() 463 *databufp = optp; in inet6_opt_append() 527 switch(*optp) { in inet6_opt_next() 529 optp++; in inet6_opt_next() 534 optp += optlen; in inet6_opt_next() 539 *typep = *optp; in inet6_opt_next() [all …]
|
| /freebsd-13.1/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() 450 shellparam.optp[i] = savestr(argv[i + 3]); in getoptscmd() [all …]
|
| H A D | options.h | 43 char **optp; /* parameter list for getopts */ member
|
| H A D | eval.c | 1028 shellparam.optp = NULL; in evalcommand()
|
| /freebsd-13.1/sys/netinet/ |
| H A D | tcp_output.c | 1814 *optp++ = TCPOPT_NOP; in tcp_addoptions() 1828 *optp++ = TCPOPT_NOP; in tcp_addoptions() 1840 *optp++ = TCPOPT_NOP; in tcp_addoptions() 1851 *optp++ = TCPOPT_NOP; in tcp_addoptions() 1871 *optp++ = TCPOPT_NOP; in tcp_addoptions() 1882 *optp++ = 0; in tcp_addoptions() 1893 *optp++ = TCPOPT_NOP; in tcp_addoptions() 1898 *optp++ = TCPOPT_SACK; in tcp_addoptions() 1926 *optp++ = total_len; in tcp_addoptions() 1943 *optp++ = TCPOPT_EOL; in tcp_addoptions() [all …]
|
| H A D | tcp_input.c | 647 u_char *optp = NULL; in tcp_input_with_port() local 831 optp = (u_char *)(th + 1); in tcp_input_with_port() 1020 tcp_dooptions(&to, optp, optlen, in tcp_input_with_port() 1111 tcp_dooptions(&to, optp, optlen, 0); in tcp_input_with_port() 1374 tcp_dooptions(&to, optp, optlen, TO_SYN); in tcp_input_with_port() 1397 tcp_dooptions(&to, optp, optlen, thflags); in tcp_input_with_port()
|
| H A D | tcp_subr.c | 1696 u_char *optp; in tcp_respond() local 1889 optp = mtod(m->m_next, u_char *); in tcp_respond() 1894 optp = (u_char *) (nth + 1); in tcp_respond() 1911 tlen += optlen = tcp_addoptions(&to, optp); in tcp_respond()
|
| /freebsd-13.1/sys/netpfil/pf/ |
| H A D | pf_osfp.c | 101 const u_int8_t *optp; in pf_osfp_fingerprint_hdr() local 139 optp = (const u_int8_t *)((const char *)tcp + sizeof(*tcp)); in pf_osfp_fingerprint_hdr() 140 for (; cnt > 0; cnt -= optlen, optp += optlen) { in pf_osfp_fingerprint_hdr() 141 if (*optp == TCPOPT_EOL) in pf_osfp_fingerprint_hdr() 145 if (*optp == TCPOPT_NOP) { in pf_osfp_fingerprint_hdr() 152 optlen = optp[1]; in pf_osfp_fingerprint_hdr() 155 switch (*optp) { in pf_osfp_fingerprint_hdr() 158 memcpy(&fp.fp_mss, &optp[2], in pf_osfp_fingerprint_hdr() 166 memcpy(&fp.fp_wscale, &optp[2], in pf_osfp_fingerprint_hdr() 180 memcpy(&ts, &optp[2], sizeof(ts)); in pf_osfp_fingerprint_hdr()
|
| H A D | pf_norm.c | 1940 u_char *optp = opts; in pf_normalize_tcpopt() local 1950 for (; cnt > 0; cnt -= optlen, optp += optlen) { in pf_normalize_tcpopt() 1951 startoff = optp - opts; in pf_normalize_tcpopt() 1952 opt = optp[0]; in pf_normalize_tcpopt() 1960 optlen = optp[1]; in pf_normalize_tcpopt() 1966 mss = (u_int16_t *)(optp + 2); in pf_normalize_tcpopt()
|
| /freebsd-13.1/sys/netinet6/ |
| H A D | raw_ip6.c | 404 struct ip6_pktopts opt, *optp; in rip6_output() local 431 optp = &opt; in rip6_output() 433 optp = inp->in6p_outputopts; in rip6_output() 441 if (!optp || !optp->ip6po_pktinfo || in rip6_output() 442 !optp->ip6po_pktinfo->ipi6_ifindex) in rip6_output() 488 error = in6_selectsrc_socket(dstsock, optp, inp, so->so_cred, in rip6_output() 562 error = ip6_output(m, optp, NULL, 0, inp->in6p_moptions, &oifp, inp); in rip6_output()
|
| H A D | udp6_usrreq.c | 707 struct ip6_pktopts *optp, opt; in udp6_output() local 819 optp = &opt; in udp6_output() 821 optp = inp->in6p_outputopts; in udp6_output() 850 error = in6_selectsrc_socket(sin6, optp, inp, in udp6_output() 970 error = ip6_output(m, optp, in udp6_output()
|
| H A D | ip6_output.c | 1835 struct ip6_pktopts **optp; in ip6_ctloutput() local 1847 optp = &inp->in6p_outputopts; in ip6_ctloutput() 1850 optp, (td != NULL) ? td->td_ucred : in ip6_ctloutput() 1987 struct ip6_pktopts **optp; in ip6_ctloutput() local 1993 optp = &inp->in6p_outputopts; in ip6_ctloutput() 1996 optp, (td != NULL) ? td->td_ucred : in ip6_ctloutput() 2061 struct ip6_pktopts **optp; in ip6_ctloutput() local 2085 optp = &inp->in6p_outputopts; in ip6_ctloutput() 2087 optp, (td != NULL) ? td->td_ucred : NULL, in ip6_ctloutput()
|
| H A D | ip6_input.c | 1130 ip6_unknown_opt(u_int8_t *optp, struct mbuf *m, int off) in ip6_unknown_opt() argument 1134 switch (IP6OPT_TYPE(*optp)) { in ip6_unknown_opt() 1136 return ((int)*(optp + 1)); in ip6_unknown_opt()
|
| /freebsd-13.1/usr.sbin/mld6query/ |
| H A D | mld6.c | 206 void *hbhbuf = NULL, *optp = NULL; in make_msg() local 283 2, &optp)) == -1) in make_msg() 286 (void)inet6_opt_set_val(optp, 0, &rtalert_code, sizeof(rtalert_code)); in make_msg()
|
| /freebsd-13.1/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-13.1/bin/ps/ |
| H A D | ps.c | 1365 char *argp, *cp, *newopts, *ns, *optp, *pidp; in kludge_oldps_options() local 1374 optp = strchr(optlist, *cp); in kludge_oldps_options() 1375 if ((optp != NULL) && *(optp + 1) == ':') { in kludge_oldps_options()
|
| /freebsd-13.1/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-13.1/usr.sbin/bsnmpd/tools/libbsnmptools/ |
| H A D | bsnmptools.c | 315 getsubopt1(char **arg, const char *const *options, char **valp, char **optp) in getsubopt1() argument 321 *optp = NULL; in getsubopt1() 331 *optp = ptr; in getsubopt1() 353 if (strcmp(*optp, *options) == 0) in getsubopt1()
|
| /freebsd-13.1/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-13.1/contrib/telnet/telnet/ |
| H A D | commands.c | 2844 sourceroute(struct addrinfo *ai, char *arg, unsigned char **cpp, int *lenp, int *protop, int *optp) in sourceroute() argument 2900 *optp = IPV6_RTHDR; in sourceroute() 2921 *optp = IP_OPTIONS; in sourceroute()
|