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

/freebsd-11.0-release/lib/libc/net/
H A Dip6opt.c299 u_int8_t *optp, *lim; local
328 for (optp = *tptrp; optp < lim; optp += optlen) {
329 if (*optp == type) {
330 *tptrp = optp;
333 if ((optlen = ip6optlen(optp, lim)) == 0)
443 u_int8_t *optp = (u_int8_t *)extbuf + offset; local
447 *optp = IP6OPT_PAD1;
448 optp
504 u_int8_t *optp, *lim; local
553 u_int8_t *optp, *lim; local
[all...]
/freebsd-11.0-release/bin/sh/
H A Doptions.c337 shellparam.optp = NULL;
357 if (param->optp) {
358 for (ap = param->optp ; *ap ; ap++)
360 ckfree(param->optp);
441 if (shellparam.optp) {
442 for (ap = shellparam.optp ; *ap ; ap++)
444 ckfree(shellparam.optp);
445 shellparam.optp = NULL;
448 shellparam.optp = ckmalloc((argc - 2) * sizeof *ap);
449 memset(shellparam.optp, '\
[all...]
H A Doptions.h41 char **optp; /* parameter list for getopts */ member in struct:shparam
H A Deval.c1034 shellparam.optp = NULL;
/freebsd-11.0-release/sys/netinet/
H A Dtcp_output.c1641 * optp in a consistent way. Can handle unaligned destinations.
1657 tcp_addoptions(struct tcpopt *to, u_char *optp) argument
1670 *optp++ = TCPOPT_NOP;
1675 *optp++ = TCPOPT_MAXSEG;
1676 *optp++ = TCPOLEN_MAXSEG;
1678 bcopy((u_char *)&to->to_mss, optp, sizeof(to->to_mss));
1679 optp += sizeof(to->to_mss);
1684 *optp++ = TCPOPT_NOP;
1689 *optp++ = TCPOPT_WINDOW;
1690 *optp
[all...]
H A Dtcp_input.c591 u_char *optp = NULL; local
780 optp = (u_char *)(th + 1);
991 tcp_dooptions(&to, optp, optlen, TO_SYN);
1109 tcp_dooptions(&to, optp, optlen, 0);
1168 tcp_dooptions(&to, optp, optlen,
1388 tcp_dooptions(&to, optp, optlen, TO_SYN);
1418 tcp_dooptions(&to, optp, optlen,
H A Dtcp_subr.c887 u_char *optp; local
1035 optp = mtod(m->m_next, u_char *);
1040 optp = (u_char *) (nth + 1);
1058 tlen += optlen = tcp_addoptions(&to, optp);
/freebsd-11.0-release/sys/netpfil/pf/
H A Dpf_osfp.c96 const u_int8_t *optp; local
132 optp = (const u_int8_t *)((const char *)tcp + sizeof(*tcp));
133 for (; cnt > 0; cnt -= optlen, optp += optlen) {
134 if (*optp == TCPOPT_EOL)
138 if (*optp == TCPOPT_NOP) {
145 optlen = optp[1];
148 switch (*optp) {
151 memcpy(&fp.fp_mss, &optp[2],
159 memcpy(&fp.fp_wscale, &optp[2],
173 memcpy(&ts, &optp[
[all...]
H A Dpf_norm.c1743 u_char *optp = opts; local
1752 for (; cnt > 0; cnt -= optlen, optp += optlen) {
1753 opt = optp[0];
1761 optlen = optp[1];
1767 mss = (u_int16_t *)(optp + 2);
/freebsd-11.0-release/usr.sbin/mld6query/
H A Dmld6.c184 void *hbhbuf = NULL, *optp = NULL; local
276 2, &optp)) == -1)
279 (void)inet6_opt_set_val(optp, 0, &rtalert_code, sizeof(rtalert_code));
/freebsd-11.0-release/sys/netinet6/
H A Draw_ip6.c395 struct ip6_pktopts opt, *optp; local
419 optp = &opt;
421 optp = in6p->in6p_outputopts;
429 if (!optp || !optp->ip6po_pktinfo ||
430 !optp->ip6po_pktinfo->ipi6_ifindex)
464 error = in6_selectsrc_socket(dstsock, optp, in6p, so->so_cred,
536 error = ip6_output(m, optp, NULL, 0, in6p->in6p_moptions, &oifp, in6p);
H A Dudp6_usrreq.c662 struct ip6_pktopts *optp, opt; local
698 optp = &opt;
700 optp = inp->in6p_outputopts;
755 error = in6_selectsrc_socket(sin6, optp, inp,
901 error = ip6_output(m, optp, NULL, flags,
H A Dip6_output.c1565 struct ip6_pktopts **optp; local
1572 optp = &in6p->in6p_outputopts;
1575 optp, (td != NULL) ? td->td_ucred :
1709 struct ip6_pktopts **optp; local
1710 optp = &in6p->in6p_outputopts;
1713 optp, (td != NULL) ? td->td_ucred :
1777 struct ip6_pktopts **optp; local
1796 optp = &in6p->in6p_outputopts;
1798 optp, (td != NULL) ? td->td_ucred : NULL,
H A Dip6_input.c1120 ip6_unknown_opt(u_int8_t *optp, struct mbuf *m, int off) argument
1124 switch (IP6OPT_TYPE(*optp)) {
1126 return ((int)*(optp + 1));
/freebsd-11.0-release/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-11.0-release/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-11.0-release/bin/ps/
H A Dps.c1334 char *argp, *cp, *newopts, *ns, *optp, *pidp; local
1343 optp = strchr(optlist, *cp);
1344 if ((optp != NULL) && *(optp + 1) == ':') {
/freebsd-11.0-release/contrib/amd/amd/
H A Dopts.c76 char **optp; /* Pointer to option value string */ member in struct:opt
518 *op->optp = opt; /* actual assignment into fs_static */
1191 val = *op->optp;
/freebsd-11.0-release/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-11.0-release/contrib/telnet/telnet/
H A Dcommands.c2828 * optp: pointer to an integer that should be filled in with
2852 * *optp: This will be filled in with appropriate option for
2856 sourceroute(struct addrinfo *ai, char *arg, char **cpp, int *lenp, int *protop, int *optp)
2912 *optp = IPV6_RTHDR;
2933 *optp = IP_OPTIONS;
2847 sourceroute(struct addrinfo *ai, char *arg, char **cpp, int *lenp, int *protop, int *optp) argument
/freebsd-11.0-release/contrib/bsnmp/snmpd/
H A Dmain.c1623 getsubopt1(char **arg, const char *const *options, char **valp, char **optp) argument
1629 *optp = NULL;
1639 *optp = ptr;
1661 if (strcmp(*optp, *options) == 0)

Completed in 215 milliseconds