| /freebsd-12.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-12.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 | 1031 shellparam.optp = NULL; in evalcommand()
|
| /freebsd-12.1/sys/netinet/ |
| H A D | tcp_output.c | 1680 *optp++ = TCPOPT_NOP; in tcp_addoptions() 1694 *optp++ = TCPOPT_NOP; in tcp_addoptions() 1706 *optp++ = TCPOPT_NOP; in tcp_addoptions() 1717 *optp++ = TCPOPT_NOP; in tcp_addoptions() 1737 *optp++ = TCPOPT_NOP; in tcp_addoptions() 1748 *optp++ = 0; in tcp_addoptions() 1759 *optp++ = TCPOPT_NOP; in tcp_addoptions() 1764 *optp++ = TCPOPT_SACK; in tcp_addoptions() 1792 *optp++ = total_len; in tcp_addoptions() 1809 *optp++ = TCPOPT_EOL; in tcp_addoptions() [all …]
|
| H A D | tcp_input.c | 574 u_char *optp = NULL; in tcp_input() local 758 optp = (u_char *)(th + 1); in tcp_input() 975 tcp_dooptions(&to, optp, optlen, TO_SYN); in tcp_input() 1084 tcp_dooptions(&to, optp, optlen, 0); in tcp_input() 1352 tcp_dooptions(&to, optp, optlen, TO_SYN); in tcp_input() 1378 tcp_dooptions(&to, optp, optlen, thflags); in tcp_input()
|
| H A D | tcp_subr.c | 1304 u_char *optp; in tcp_respond() local 1452 optp = mtod(m->m_next, u_char *); in tcp_respond() 1457 optp = (u_char *) (nth + 1); in tcp_respond() 1474 tlen += optlen = tcp_addoptions(&to, optp); in tcp_respond()
|
| /freebsd-12.1/sys/netpfil/pf/ |
| H A D | pf_osfp.c | 101 const u_int8_t *optp; in pf_osfp_fingerprint_hdr() local 140 optp = (const u_int8_t *)((const char *)tcp + sizeof(*tcp)); in pf_osfp_fingerprint_hdr() 141 for (; cnt > 0; cnt -= optlen, optp += optlen) { in pf_osfp_fingerprint_hdr() 142 if (*optp == TCPOPT_EOL) in pf_osfp_fingerprint_hdr() 146 if (*optp == TCPOPT_NOP) { in pf_osfp_fingerprint_hdr() 153 optlen = optp[1]; in pf_osfp_fingerprint_hdr() 156 switch (*optp) { in pf_osfp_fingerprint_hdr() 159 memcpy(&fp.fp_mss, &optp[2], in pf_osfp_fingerprint_hdr() 167 memcpy(&fp.fp_wscale, &optp[2], in pf_osfp_fingerprint_hdr() 181 memcpy(&ts, &optp[2], sizeof(ts)); in pf_osfp_fingerprint_hdr()
|
| H A D | pf_norm.c | 1763 u_char *optp = opts; in pf_normalize_tcpopt() local 1772 for (; cnt > 0; cnt -= optlen, optp += optlen) { in pf_normalize_tcpopt() 1773 opt = optp[0]; in pf_normalize_tcpopt() 1781 optlen = optp[1]; in pf_normalize_tcpopt() 1787 mss = (u_int16_t *)(optp + 2); in pf_normalize_tcpopt()
|
| /freebsd-12.1/sys/netinet6/ |
| H A D | raw_ip6.c | 400 struct ip6_pktopts opt, *optp; in rip6_output() local 423 optp = &opt; in rip6_output() 425 optp = in6p->in6p_outputopts; in rip6_output() 433 if (!optp || !optp->ip6po_pktinfo || in rip6_output() 434 !optp->ip6po_pktinfo->ipi6_ifindex) in rip6_output() 468 error = in6_selectsrc_socket(dstsock, optp, in6p, so->so_cred, in rip6_output() 540 error = ip6_output(m, optp, NULL, 0, in6p->in6p_moptions, &oifp, in6p); in rip6_output()
|
| H A D | udp6_usrreq.c | 694 struct ip6_pktopts *optp, opt; in udp6_output() local 830 optp = &opt; in udp6_output() 832 optp = inp->in6p_outputopts; in udp6_output() 876 error = in6_selectsrc_socket(sin6, optp, inp, in udp6_output() 1017 error = ip6_output(m, optp, in udp6_output()
|
| H A D | ip6_output.c | 1679 struct ip6_pktopts **optp; in ip6_ctloutput() local 1691 optp = &in6p->in6p_outputopts; in ip6_ctloutput() 1694 optp, (td != NULL) ? td->td_ucred : in ip6_ctloutput() 1805 struct ip6_pktopts **optp; in ip6_ctloutput() local 1811 optp = &in6p->in6p_outputopts; in ip6_ctloutput() 1814 optp, (td != NULL) ? td->td_ucred : in ip6_ctloutput() 1879 struct ip6_pktopts **optp; in ip6_ctloutput() local 1903 optp = &in6p->in6p_outputopts; in ip6_ctloutput() 1905 optp, (td != NULL) ? td->td_ucred : NULL, in ip6_ctloutput()
|
| H A D | ip6_input.c | 1167 ip6_unknown_opt(u_int8_t *optp, struct mbuf *m, int off) in ip6_unknown_opt() argument 1171 switch (IP6OPT_TYPE(*optp)) { in ip6_unknown_opt() 1173 return ((int)*(optp + 1)); in ip6_unknown_opt()
|
| /freebsd-12.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-12.1/contrib/flex/ |
| H A D | scanopt.c | 715 const optspec_t *optp; local 809 optp = s->options + opt_offset; 824 return optp->r_val; 842 return optp->r_val; 849 return optp->r_val;
|
| /freebsd-12.1/bin/ps/ |
| H A D | ps.c | 1354 char *argp, *cp, *newopts, *ns, *optp, *pidp; in kludge_oldps_options() local 1363 optp = strchr(optlist, *cp); in kludge_oldps_options() 1364 if ((optp != NULL) && *(optp + 1) == ':') { in kludge_oldps_options()
|
| /freebsd-12.1/contrib/amd/amd/ |
| H A D | opts.c | 72 char **optp; /* Pointer to option value string */ member 514 *op->optp = opt; /* actual assignment into fs_static */ in split_opts() 1187 val = *op->optp; in expand_op()
|
| /freebsd-12.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-12.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-12.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-12.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()
|