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

/freebsd-10-stable/lib/libc/net/
H A Dip6opt.c302 u_int8_t *optp, *lim; local
331 for (optp = *tptrp; optp < lim; optp += optlen) {
332 if (*optp == type) {
333 *tptrp = optp;
336 if ((optlen = ip6optlen(optp, lim)) == 0)
449 u_int8_t *optp = (u_int8_t *)extbuf + offset; local
453 *optp = IP6OPT_PAD1;
454 optp
510 u_int8_t *optp, *lim; local
559 u_int8_t *optp, *lim; local
[all...]
/freebsd-10-stable/sys/netinet/
H A Dtcp_output.c1629 * optp in a consistent way. Can handle unaligned destinations.
1645 tcp_addoptions(struct tcpopt *to, u_char *optp) argument
1658 *optp++ = TCPOPT_NOP;
1663 *optp++ = TCPOPT_MAXSEG;
1664 *optp++ = TCPOLEN_MAXSEG;
1666 bcopy((u_char *)&to->to_mss, optp, sizeof(to->to_mss));
1667 optp += sizeof(to->to_mss);
1672 *optp++ = TCPOPT_NOP;
1677 *optp++ = TCPOPT_WINDOW;
1678 *optp
[all...]
H A Dtcp_input.c550 u_char *optp = NULL; local
738 optp = (u_char *)(th + 1);
964 tcp_dooptions(&to, optp, optlen, TO_SYN);
1086 tcp_dooptions(&to, optp, optlen, 0);
1145 tcp_dooptions(&to, optp, optlen,
1364 tcp_dooptions(&to, optp, optlen, TO_SYN);
1394 tcp_dooptions(&to, optp, optlen,
H A Dtcp_subr.c564 u_char *optp; local
712 optp = mtod(m->m_next, u_char *);
717 optp = (u_char *) (nth + 1);
735 tlen += optlen = tcp_addoptions(&to, optp);
/freebsd-10-stable/sys/netpfil/pf/
H A Dpf_osfp.c97 const u_int8_t *optp; local
136 optp = (const u_int8_t *)((const char *)tcp + sizeof(*tcp));
137 for (; cnt > 0; cnt -= optlen, optp += optlen) {
138 if (*optp == TCPOPT_EOL)
142 if (*optp == TCPOPT_NOP) {
149 optlen = optp[1];
152 switch (*optp) {
155 memcpy(&fp.fp_mss, &optp[2],
163 memcpy(&fp.fp_wscale, &optp[2],
177 memcpy(&ts, &optp[
[all...]
H A Dpf_norm.c2220 u_char *optp = opts; local
2229 for (; cnt > 0; cnt -= optlen, optp += optlen) {
2230 opt = optp[0];
2238 optlen = optp[1];
2244 mss = (u_int16_t *)(optp + 2);
/freebsd-10-stable/usr.sbin/mld6query/
H A Dmld6.c185 void *hbhbuf = NULL, *optp = NULL; local
277 2, &optp)) == -1)
280 (void)inet6_opt_set_val(optp, 0, &rtalert_code, sizeof(rtalert_code));
/freebsd-10-stable/sys/netinet6/
H A Draw_ip6.c407 struct ip6_pktopts opt, *optp; local
431 optp = &opt;
433 optp = in6p->in6p_outputopts;
441 if (!optp || !optp->ip6po_pktinfo ||
442 !optp->ip6po_pktinfo->ipi6_ifindex)
476 error = in6_selectsrc(dstsock, optp, in6p, NULL, so->so_cred,
560 error = ip6_output(m, optp, NULL, 0, in6p->in6p_moptions, &oifp, in6p);
H A Dudp6_usrreq.c639 struct ip6_pktopts *optp, opt; local
673 optp = &opt;
675 optp = inp->in6p_outputopts;
730 error = in6_selectsrc(sin6, optp, inp, NULL,
845 error = ip6_output(m, optp, NULL, flags, inp->in6p_moptions,
H A Dip6_output.c1481 struct ip6_pktopts **optp; local
1488 optp = &in6p->in6p_outputopts;
1491 optp, (td != NULL) ? td->td_ucred :
1604 struct ip6_pktopts **optp; local
1605 optp = &in6p->in6p_outputopts;
1608 optp, (td != NULL) ? td->td_ucred :
1672 struct ip6_pktopts **optp; local
1691 optp = &in6p->in6p_outputopts;
1693 optp, (td != NULL) ? td->td_ucred : NULL,
H A Dip6_input.c1256 ip6_unknown_opt(u_int8_t *optp, struct mbuf *m, int off) argument
1260 switch (IP6OPT_TYPE(*optp)) {
1262 return ((int)*(optp + 1));
/freebsd-10-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-10-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-10-stable/bin/ps/
H A Dps.c1315 char *argp, *cp, *newopts, *ns, *optp, *pidp; local
1324 optp = strchr(optlist, *cp);
1325 if ((optp != NULL) && *(optp + 1) == ':') {
/freebsd-10-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-10-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-10-stable/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, unsigned char **cpp, int *lenp, int *protop, int *optp)
2912 *optp = IPV6_RTHDR;
2933 *optp = IP_OPTIONS;
2847 sourceroute(struct addrinfo *ai, char *arg, unsigned char **cpp, int *lenp, int *protop, int *optp) argument
/freebsd-10-stable/contrib/bsnmp/snmpd/
H A Dmain.c1433 getsubopt1(char **arg, const char *const *options, char **valp, char **optp) argument
1439 *optp = NULL;
1449 *optp = ptr;
1471 if (strcmp(*optp, *options) == 0)

Completed in 158 milliseconds