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

/netbsd-6-1-5-RELEASE/lib/libc/net/
H A Dip6opt.c347 u_int8_t *optp, *lim; local
379 for (optp = *tptrp; optp < lim; optp += optlen) {
380 if (*optp == type) {
381 *tptrp = optp;
384 if ((optlen = ip6optlen(optp, lim)) == 0)
505 u_int8_t *optp = (u_int8_t *)extbuf + offset; local
509 *optp = IP6OPT_PAD1;
510 optp
565 u_int8_t *optp, *lim; local
613 u_int8_t *optp, *lim; local
[all...]
/netbsd-6-1-5-RELEASE/sys/netinet6/
H A Dudp6_output.c131 struct ip6_pktopts *optp = NULL; local
174 optp = &opt;
176 optp = in6p->in6p_outputopts;
234 laddr = in6_selectsrc(sin6, optp,
374 error = ip6_output(m, optp, &in6p->in6p_route, 0,
421 if (optp == &opt)
H A Draw_ip6.c407 struct ip6_pktopts opt, *optp = NULL; local
422 optp = &opt;
424 optp = in6p->in6p_outputopts;
471 if ((in6a = in6_selectsrc(dstsock, optp, in6p->in6p_moptions,
535 error = ip6_output(m, optp, &in6p->in6p_route, 0,
H A Dah_core.c1436 u_int8_t *p, *optend, *optp; local
1474 optp = p + 2;
1475 while (optp < optend) {
1476 if (optp[0] == IP6OPT_PAD1)
1479 if (optp + 2 > optend) {
1485 optlen = optp[1] + 2;
1488 if (optp + optlen > optend) {
1495 if (optp[0] & IP6OPT_MUTABLE)
1496 memset(optp + 2, 0, optlen - 2);
1498 optp
[all...]
H A Dip6_output.c1556 struct ip6_pktopts **optp; local
1565 optp = &in6p->in6p_outputopts;
1569 optp,
1678 struct ip6_pktopts **optp; local
1684 optp = &in6p->in6p_outputopts;
1688 optp,
1700 struct ip6_pktopts **optp; local
1701 optp = &in6p->in6p_outputopts;
1705 optp,
1763 struct ip6_pktopts **optp; local
[all...]
H A Dip6_input.c1065 ip6_unknown_opt(u_int8_t *optp, struct mbuf *m, int off) argument
1069 switch (IP6OPT_TYPE(*optp)) {
1071 return ((int)*(optp + 1));
/netbsd-6-1-5-RELEASE/sys/dist/pf/net/
H A Dpf_osfp.c126 const u_int8_t *optp; local
195 optp = (const u_int8_t *)((const char *)tcp + sizeof(*tcp));
196 for (; cnt > 0; cnt -= optlen, optp += optlen) {
197 if (*optp == TCPOPT_EOL)
201 if (*optp == TCPOPT_NOP) {
208 optlen = optp[1];
211 switch (*optp) {
214 memcpy(&fp.fp_mss, &optp[2],
222 memcpy(&fp.fp_wscale, &optp[2],
236 memcpy(&ts, &optp[
[all...]
H A Dpf_norm.c1886 u_char *optp; local
1890 optp = mtod(m, u_char *) + off + sizeof(struct tcphdr);
1892 for (; cnt > 0; cnt -= optlen, optp += optlen) {
1893 opt = optp[0];
1901 optlen = optp[1];
1907 mss = (u_int16_t *)(optp + 2);
/netbsd-6-1-5-RELEASE/usr.sbin/mld6query/
H A Dmld6.c163 void *hbhbuf = NULL, *optp = NULL; local
230 2, &optp)) == -1)
233 (void)inet6_opt_set_val(optp, 0, &rtalert_code, sizeof(rtalert_code));
/netbsd-6-1-5-RELEASE/sys/netinet/
H A Dtcp_input.c1216 u_int8_t *optp = NULL; local
1382 optp = ((u_int8_t *)th) + sizeof(struct tcphdr);
1392 optp[TCPOLEN_TSTAMP_APPA] == TCPOPT_EOL)) &&
1393 *(u_int32_t *)optp == htonl(TCPOPT_TSTAMP_HDR) &&
1396 opti.ts_val = ntohl(*(u_int32_t *)(optp + 4));
1397 opti.ts_ecr = ntohl(*(u_int32_t *)(optp + 8));
1398 optp = NULL; /* we've parsed the options */
1865 so, m, optp, optlen, &opti))
1894 if (optp || (tp->t_flags & TF_SIGNATURE))
1896 if (optp)
4333 syn_cache_add(struct sockaddr *src, struct sockaddr *dst, struct tcphdr *th, unsigned int hlen, struct socket *so, struct mbuf *m, u_char *optp, int optlen, struct tcp_opt_info *oi) argument
4546 u_int8_t *optp; local
[all...]
/netbsd-6-1-5-RELEASE/external/bsd/flex/dist/
H A Dscanopt.c722 const optspec_t *optp;
816 optp = s->options + opt_offset;
831 return optp->r_val;
849 return optp->r_val;
856 return optp->r_val;
718 const optspec_t *optp; local
/netbsd-6-1-5-RELEASE/external/bsd/am-utils/dist/amd/
H A Dopts.c78 char **optp; /* Pointer to option value string */ member in struct:opt
520 *op->optp = opt; /* actual assignment into fs_static */
1193 val = *op->optp;
/netbsd-6-1-5-RELEASE/usr.sbin/rtadvd/
H A Drtadvd.c885 struct nd_optlist *optp; local
1019 TAILQ_FOREACH(optp, &ndopts.nd_opts_list, next)
1020 if (prefix_check((struct nd_opt_prefix_info *)optp->opt,
/netbsd-6-1-5-RELEASE/usr.bin/telnet/
H A Dcommands.c2726 * protop/optp:
2738 * The caller needs to pass return value (len), *cpp, *protop and *optp
2747 * *optp: option # to be passed to setsockopt(2).
2751 sourceroute(struct addrinfo *ai, char *arg, char **cpp, int *protop, int *optp)
2803 *optp = IP_OPTIONS;
2814 *optp = IPV6_PKTOPTIONS;
2742 sourceroute(struct addrinfo *ai, char *arg, char **cpp, int *protop, int *optp) argument

Completed in 364 milliseconds