Home
last modified time | relevance | path

Searched refs:optp (Results 1 – 23 of 23) 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.c1806 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 Dtcp_input.c620 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 Dtcp_subr.c1746 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 Dkdf.c51 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 Dmac.c55 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 Dpf_osfp.c99 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 Dpf_norm.c1942 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 Draw_ip6.c357 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 Dudp6_usrreq.c672 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 Dip6_output.c1833 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 Dip6_input.c1142 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 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.c1353 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 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.c1464 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 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()