Home
last modified time | relevance | path

Searched refs:optp (Results 1 – 22 of 22) sorted by relevance

/freebsd/lib/libc/net/
H A Dip6opt.c298 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 Doptions.c336 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 Doptions.h40 char **optp; /* parameter list for getopts */ member
H A Deval.c1020 shellparam.optp = NULL; in evalcommand()
/freebsd/sys/netinet/
H A Dtcp_output.c1793 tcp_addoptions(struct tcpopt *to, u_char *optp) in tcp_addoptions() argument
1806 *optp++ = TCPOPT_NOP; in tcp_addoptions()
1811 *optp++ = TCPOPT_MAXSEG; in tcp_addoptions()
1812 *optp++ = TCPOLEN_MAXSEG; in tcp_addoptions()
1814 bcopy((u_char *)&to->to_mss, optp, sizeof(to->to_mss)); in tcp_addoptions()
1815 optp += sizeof(to->to_mss); in tcp_addoptions()
1820 *optp++ = TCPOPT_NOP; in tcp_addoptions()
1825 *optp++ = TCPOPT_WINDOW; in tcp_addoptions()
1826 *optp++ = TCPOLEN_WINDOW; in tcp_addoptions()
1827 *optp++ = to->to_wscale; in tcp_addoptions()
[all …]
H A Dtcp_input.c601 u_char *optp = NULL; in tcp_input_with_port() local
798 optp = (u_char *)(th + 1); in tcp_input_with_port()
967 tcp_dooptions(&to, optp, optlen, in tcp_input_with_port()
1045 tcp_dooptions(&to, optp, optlen, 0); in tcp_input_with_port()
1314 tcp_dooptions(&to, optp, optlen, TO_SYN); in tcp_input_with_port()
1327 tcp_dooptions(&to, optp, optlen, thflags); in tcp_input_with_port()
H A Dtcp_subr.c1728 u_char *optp; in tcp_respond() local
1928 optp = mtod(m->m_next, u_char *); in tcp_respond()
1933 optp = (u_char *) (nth + 1); in tcp_respond()
1950 tlen += optlen = tcp_addoptions(&to, optp); in tcp_respond()
/freebsd/crypto/openssl/apps/
H A Dkdf.c56 static char *alloc_kdf_algorithm_name(STACK_OF(OPENSSL_STRING) **optp, in alloc_kdf_algorithm_name() argument
62 if (*optp == NULL) in alloc_kdf_algorithm_name()
63 *optp = sk_OPENSSL_STRING_new_null(); in alloc_kdf_algorithm_name()
64 if (*optp == NULL) in alloc_kdf_algorithm_name()
69 if (sk_OPENSSL_STRING_push(*optp, res)) in alloc_kdf_algorithm_name()
H A Dmac.c59 static char *alloc_mac_algorithm_name(STACK_OF(OPENSSL_STRING) **optp, in alloc_mac_algorithm_name() argument
65 if (*optp == NULL) in alloc_mac_algorithm_name()
66 *optp = sk_OPENSSL_STRING_new_null(); in alloc_mac_algorithm_name()
67 if (*optp == NULL) in alloc_mac_algorithm_name()
72 if (sk_OPENSSL_STRING_push(*optp, res)) in alloc_mac_algorithm_name()
/freebsd/sys/netpfil/pf/
H A Dpf_osfp.c96 const u_int8_t *optp; in pf_osfp_fingerprint_hdr() local
134 optp = (const u_int8_t *)((const char *)tcp + sizeof(*tcp)); in pf_osfp_fingerprint_hdr()
135 for (; cnt > 0; cnt -= optlen, optp += optlen) { in pf_osfp_fingerprint_hdr()
136 if (*optp == TCPOPT_EOL) in pf_osfp_fingerprint_hdr()
140 if (*optp == TCPOPT_NOP) { in pf_osfp_fingerprint_hdr()
147 optlen = optp[1]; in pf_osfp_fingerprint_hdr()
150 switch (*optp) { in pf_osfp_fingerprint_hdr()
153 memcpy(&fp.fp_mss, &optp[2], in pf_osfp_fingerprint_hdr()
161 memcpy(&fp.fp_wscale, &optp[2], in pf_osfp_fingerprint_hdr()
175 memcpy(&ts, &optp[2], sizeof(ts)); in pf_osfp_fingerprint_hdr()
/freebsd/sys/netinet6/
H A Draw_ip6.c356 struct ip6_pktopts opt, *optp; in rip6_send() local
413 optp = &opt; in rip6_send()
415 optp = inp->in6p_outputopts; in rip6_send()
423 if (!optp || !optp->ip6po_pktinfo || in rip6_send()
424 !optp->ip6po_pktinfo->ipi6_ifindex) in rip6_send()
469 error = in6_selectsrc_socket(dstsock, optp, inp, so->so_cred, in rip6_send()
542 error = ip6_output(m, optp, NULL, 0, inp->in6p_moptions, &oifp, inp); in rip6_send()
H A Dudp6_usrreq.c682 struct ip6_pktopts *optp, opt; in udp6_send() local
798 optp = &opt; in udp6_send()
800 optp = inp->in6p_outputopts; in udp6_send()
829 error = in6_selectsrc_socket(sin6, optp, inp, in udp6_send()
964 error = ip6_output(m, optp, in udp6_send()
H A Dip6_output.c1692 struct ip6_pktopts **optp; in ip6_ctloutput() local
1704 optp = &inp->in6p_outputopts; in ip6_ctloutput()
1707 optp, (td != NULL) ? td->td_ucred : in ip6_ctloutput()
1827 struct ip6_pktopts **optp; in ip6_ctloutput() local
1833 optp = &inp->in6p_outputopts; in ip6_ctloutput()
1836 optp, (td != NULL) ? td->td_ucred : in ip6_ctloutput()
1901 struct ip6_pktopts **optp; in ip6_ctloutput() local
1925 optp = &inp->in6p_outputopts; in ip6_ctloutput()
1927 optp, (td != NULL) ? td->td_ucred : NULL, in ip6_ctloutput()
H A Dip6_input.c1092 ip6_unknown_opt(u_int8_t *optp, struct mbuf *m, int off) in ip6_unknown_opt() argument
1096 switch (IP6OPT_TYPE(*optp)) { in ip6_unknown_opt()
1098 return ((int)*(optp + 1)); in ip6_unknown_opt()
/freebsd/usr.sbin/mld6query/
H A Dmld6.c203 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 Dscanopt.c660 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 Dps.c1439 char *argp, *cp, *newopts, *ns, *optp, *pidp; in kludge_oldps_options() local
1448 optp = strchr(optlist, *cp); in kludge_oldps_options()
1449 if ((optp != NULL) && *(optp + 1) == ':') { in kludge_oldps_options()
/freebsd/crypto/heimdal/appl/telnet/telnet/
H A Dexterns.h213 int *prototp, int *optp);
H A Dcommands.c2513 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 Dbsnmptools.c312 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 Dmain.c1461 getsubopt1(char **arg, const char *const *options, char **valp, char **optp) in getsubopt1() argument
1467 *optp = NULL; in getsubopt1()
1477 *optp = ptr; in getsubopt1()
1499 if (strcmp(*optp, *options) == 0) in getsubopt1()
/freebsd/contrib/telnet/telnet/
H A Dcommands.c2849 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()