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

/freebsd-12-stable/lib/libc/net/
H A Dip6opt.c301 u_int8_t *optp, *lim; local
330 for (optp = *tptrp; optp < lim; optp += optlen) {
331 if (*optp == type) {
332 *tptrp = optp;
335 if ((optlen = ip6optlen(optp, lim)) == 0)
445 u_int8_t *optp = (u_int8_t *)extbuf + offset; local
449 *optp = IP6OPT_PAD1;
450 optp
506 u_int8_t *optp, *lim; local
555 u_int8_t *optp, *lim; local
[all...]
/freebsd-12-stable/bin/sh/
H A Doptions.c336 shellparam.optp = NULL;
356 if (param->optp) {
357 for (ap = param->optp ; *ap ; ap++)
359 ckfree(param->optp);
440 if (shellparam.optp) {
441 for (ap = shellparam.optp ; *ap ; ap++)
443 ckfree(shellparam.optp);
444 shellparam.optp = NULL;
447 shellparam.optp = ckmalloc((argc - 2) * sizeof *ap);
448 memset(shellparam.optp, '\
[all...]
H A Doptions.h43 char **optp; /* parameter list for getopts */ member in struct:shparam
H A Deval.c1031 shellparam.optp = NULL;
/freebsd-12-stable/sys/netinet/
H A Dtcp_output.c1671 * optp in a consistent way. Can handle unaligned destinations.
1687 tcp_addoptions(struct tcpopt *to, u_char *optp) argument
1700 *optp++ = TCPOPT_NOP;
1705 *optp++ = TCPOPT_MAXSEG;
1706 *optp++ = TCPOLEN_MAXSEG;
1708 bcopy((u_char *)&to->to_mss, optp, sizeof(to->to_mss));
1709 optp += sizeof(to->to_mss);
1714 *optp++ = TCPOPT_NOP;
1719 *optp++ = TCPOPT_WINDOW;
1720 *optp
[all...]
H A Dtcp_subr.c1309 u_char *optp; local
1457 optp = mtod(m->m_next, u_char *);
1462 optp = (u_char *) (nth + 1);
1479 tlen += optlen = tcp_addoptions(&to, optp);
H A Dtcp_input.c581 u_char *optp = NULL; local
762 optp = (u_char *)(th + 1);
978 tcp_dooptions(&to, optp, optlen,
1088 tcp_dooptions(&to, optp, optlen, 0);
1356 tcp_dooptions(&to, optp, optlen, TO_SYN);
1382 tcp_dooptions(&to, optp, optlen, thflags);
/freebsd-12-stable/sys/netpfil/pf/
H A Dpf_osfp.c101 const u_int8_t *optp; local
140 optp = (const u_int8_t *)((const char *)tcp + sizeof(*tcp));
141 for (; cnt > 0; cnt -= optlen, optp += optlen) {
142 if (*optp == TCPOPT_EOL)
146 if (*optp == TCPOPT_NOP) {
153 optlen = optp[1];
156 switch (*optp) {
159 memcpy(&fp.fp_mss, &optp[2],
167 memcpy(&fp.fp_wscale, &optp[2],
181 memcpy(&ts, &optp[
[all...]
H A Dpf_norm.c1965 u_char *optp = opts; local
1975 for (; cnt > 0; cnt -= optlen, optp += optlen) {
1976 startoff = optp - opts;
1977 opt = optp[0];
1985 optlen = optp[1];
1991 mss = (u_int16_t *)(optp + 2);
/freebsd-12-stable/usr.sbin/mld6query/
H A Dmld6.c206 void *hbhbuf = NULL, *optp = NULL; local
283 2, &optp)) == -1)
286 (void)inet6_opt_set_val(optp, 0, &rtalert_code, sizeof(rtalert_code));
/freebsd-12-stable/sys/netinet6/
H A Draw_ip6.c400 struct ip6_pktopts opt, *optp; local
423 optp = &opt;
425 optp = inp->in6p_outputopts;
433 if (!optp || !optp->ip6po_pktinfo ||
434 !optp->ip6po_pktinfo->ipi6_ifindex)
468 error = in6_selectsrc_socket(dstsock, optp, inp, so->so_cred,
540 error = ip6_output(m, optp, NULL, 0, inp->in6p_moptions, &oifp, inp);
H A Dudp6_usrreq.c702 struct ip6_pktopts *optp, opt; local
838 optp = &opt;
840 optp = inp->in6p_outputopts;
884 error = in6_selectsrc_socket(sin6, optp, inp,
1025 error = ip6_output(m, optp,
H A Dip6_output.c1695 struct ip6_pktopts **optp; local
1707 optp = &inp->in6p_outputopts;
1710 optp, (td != NULL) ? td->td_ucred :
1844 struct ip6_pktopts **optp; local
1850 optp = &inp->in6p_outputopts;
1853 optp, (td != NULL) ? td->td_ucred :
1918 struct ip6_pktopts **optp; local
1942 optp = &inp->in6p_outputopts;
1944 optp, (td != NULL) ? td->td_ucred : NULL,
H A Dip6_input.c1133 ip6_unknown_opt(u_int8_t *optp, struct mbuf *m, int off) argument
1137 switch (IP6OPT_TYPE(*optp)) {
1139 return ((int)*(optp + 1));
/freebsd-12-stable/contrib/flex/
H A Dscanopt.c719 const optspec_t *optp;
813 optp = s->options + opt_offset;
828 return optp->r_val;
846 return optp->r_val;
853 return optp->r_val;
715 const optspec_t *optp; local
/freebsd-12-stable/crypto/heimdal/appl/telnet/telnet/
H A Dexterns.h213 int *prototp, int *optp);
H A Dcommands.c2493 * protop/optp:
2505 * The caller needs to pass return value (len), *cpp, *protop and *optp
2514 * *optp: option # to be passed to setsockopt(2).
2522 int *optp)
2566 *optp = IP_OPTIONS;
2577 *optp = IPV6_PKTOPTIONS;
2509 sourceroute(struct addrinfo *ai, char *arg, char **cpp, int *protop, int *optp) argument
/freebsd-12-stable/bin/ps/
H A Dps.c1365 char *argp, *cp, *newopts, *ns, *optp, *pidp; local
1374 optp = strchr(optlist, *cp);
1375 if ((optp != NULL) && *(optp + 1) == ':') {
/freebsd-12-stable/contrib/amd/amd/
H A Dopts.c72 char **optp; /* Pointer to option value string */ member in struct:opt
514 *op->optp = opt; /* actual assignment into fs_static */
1187 val = *op->optp;
/freebsd-12-stable/usr.sbin/bsnmpd/tools/libbsnmptools/
H A Dbsnmptools.c315 getsubopt1(char **arg, const char *const *options, char **valp, char **optp) argument
321 *optp = NULL;
331 *optp = ptr;
353 if (strcmp(*optp, *options) == 0)
/freebsd-12-stable/contrib/telnet/telnet/
H A Dcommands.c2825 * optp: pointer to an integer that should be filled in with
2849 * *optp: This will be filled in with appropriate option for
2853 sourceroute(struct addrinfo *ai, char *arg, unsigned char **cpp, int *lenp, int *protop, int *optp)
2909 *optp = IPV6_RTHDR;
2930 *optp = IP_OPTIONS;
2844 sourceroute(struct addrinfo *ai, char *arg, unsigned char **cpp, int *lenp, int *protop, int *optp) argument
/freebsd-12-stable/contrib/bsnmp/snmpd/
H A Dmain.c1464 getsubopt1(char **arg, const char *const *options, char **valp, char **optp) argument
1470 *optp = NULL;
1480 *optp = ptr;
1502 if (strcmp(*optp, *options) == 0)

Completed in 350 milliseconds