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

/freebsd-9.3-release/lib/libc/net/
H A Dip6opt.c290 u_int8_t *optp, *lim; local
319 for (optp = *tptrp; optp < lim; optp += optlen) {
320 if (*optp == type) {
321 *tptrp = optp;
324 if ((optlen = ip6optlen(optp, lim)) == 0)
437 u_int8_t *optp = (u_int8_t *)extbuf + offset; local
441 *optp = IP6OPT_PAD1;
442 optp
498 u_int8_t *optp, *lim; local
547 u_int8_t *optp, *lim; local
[all...]
/freebsd-9.3-release/sys/netinet/
H A Dtcp_output.c1416 * optp in a consistent way. Can handle unaligned destinations.
1432 tcp_addoptions(struct tcpopt *to, u_char *optp) argument
1445 *optp++ = TCPOPT_NOP;
1450 *optp++ = TCPOPT_MAXSEG;
1451 *optp++ = TCPOLEN_MAXSEG;
1453 bcopy((u_char *)&to->to_mss, optp, sizeof(to->to_mss));
1454 optp += sizeof(to->to_mss);
1459 *optp++ = TCPOPT_NOP;
1464 *optp++ = TCPOPT_WINDOW;
1465 *optp
[all...]
H A Dtcp_input.c562 u_char *optp = NULL; local
753 optp = (u_char *)(th + 1);
975 tcp_dooptions(&to, optp, optlen, TO_SYN);
1093 tcp_dooptions(&to, optp, optlen, 0);
1145 tcp_dooptions(&to, optp, optlen,
1364 tcp_dooptions(&to, optp, optlen, TO_SYN);
1385 tcp_dooptions(&to, optp, optlen,
/freebsd-9.3-release/sys/contrib/pf/net/
H A Dpf_osfp.c150 const u_int8_t *optp; local
218 optp = (const u_int8_t *)((const char *)tcp + sizeof(*tcp));
219 for (; cnt > 0; cnt -= optlen, optp += optlen) {
220 if (*optp == TCPOPT_EOL)
224 if (*optp == TCPOPT_NOP) {
231 optlen = optp[1];
234 switch (*optp) {
237 memcpy(&fp.fp_mss, &optp[2],
245 memcpy(&fp.fp_wscale, &optp[2],
259 memcpy(&ts, &optp[
[all...]
H A Dpf_norm.c2264 u_char *optp = opts;
2273 for (; cnt > 0; cnt -= optlen, optp += optlen) {
2274 opt = optp[0];
2282 optlen = optp[1];
2288 mss = (u_int16_t *)(optp + 2);
/freebsd-9.3-release/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-9.3-release/sys/netinet6/
H A Draw_ip6.c403 struct ip6_pktopts opt, *optp; local
427 optp = &opt;
429 optp = in6p->in6p_outputopts;
437 if (!optp || !optp->ip6po_pktinfo ||
438 !optp->ip6po_pktinfo->ipi6_ifindex)
472 error = in6_selectsrc(dstsock, optp, in6p, NULL, so->so_cred,
556 error = ip6_output(m, optp, NULL, 0, in6p->in6p_moptions, &oifp, in6p);
H A Dudp6_usrreq.c603 struct ip6_pktopts *optp, opt; local
637 optp = &opt;
639 optp = inp->in6p_outputopts;
696 error = in6_selectsrc(sin6, optp, inp, NULL,
791 error = ip6_output(m, optp, NULL, flags, inp->in6p_moptions,
H A Dip6_output.c1639 struct ip6_pktopts **optp; local
1646 optp = &in6p->in6p_outputopts;
1649 optp, (td != NULL) ? td->td_ucred :
1762 struct ip6_pktopts **optp; local
1763 optp = &in6p->in6p_outputopts;
1766 optp, (td != NULL) ? td->td_ucred :
1830 struct ip6_pktopts **optp; local
1849 optp = &in6p->in6p_outputopts;
1851 optp, (td != NULL) ? td->td_ucred : NULL,
H A Dip6_input.c1267 ip6_unknown_opt(u_int8_t *optp, struct mbuf *m, int off) argument
1271 switch (IP6OPT_TYPE(*optp)) {
1273 return ((int)*(optp + 1));
/freebsd-9.3-release/bin/ps/
H A Dps.c1310 char *argp, *cp, *newopts, *ns, *optp, *pidp; local
1319 optp = strchr(optlist, *cp);
1320 if ((optp != NULL) && *(optp + 1) == ':') {
/freebsd-9.3-release/crypto/heimdal/appl/telnet/telnet/
H A Dexterns.h213 int *prototp, int *optp);
H A Dcommands.c2514 * protop/optp:
2526 * The caller needs to pass return value (len), *cpp, *protop and *optp
2535 * *optp: option # to be passed to setsockopt(2).
2543 int *optp)
2587 *optp = IP_OPTIONS;
2598 *optp = IPV6_PKTOPTIONS;
2530 sourceroute(struct addrinfo *ai, char *arg, char **cpp, int *protop, int *optp) argument
/freebsd-9.3-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-9.3-release/usr.sbin/bsnmpd/tools/libbsnmptools/
H A Dbsnmptools.c317 getsubopt1(char **arg, const char *const *options, char **valp, char **optp) argument
323 *optp = NULL;
333 *optp = ptr;
355 if (strcmp(*optp, *options) == 0)
/freebsd-9.3-release/contrib/telnet/telnet/
H A Dcommands.c2827 * optp: pointer to an integer that should be filled in with
2851 * *optp: This will be filled in with appropriate option for
2855 sourceroute(struct addrinfo *ai, char *arg, char **cpp, int *lenp, int *protop, int *optp)
2911 *optp = IPV6_RTHDR;
2932 *optp = IP_OPTIONS;
2846 sourceroute(struct addrinfo *ai, char *arg, char **cpp, int *lenp, int *protop, int *optp) argument
/freebsd-9.3-release/contrib/bsnmp/snmpd/
H A Dmain.c1619 getsubopt1(char **arg, const char *const *options, char **valp, char **optp) argument
1625 *optp = NULL;
1635 *optp = ptr;
1657 if (strcmp(*optp, *options) == 0)

Completed in 414 milliseconds