| /netbsd-src/lib/libc/net/ |
| H A D | ip6opt.c | 341 uint8_t *optp, *lim; in inet6_option_find() local 373 for (optp = *tptrp; optp < lim; optp += optlen) { in inet6_option_find() 374 if (*optp == type) { in inet6_option_find() 375 *tptrp = optp; in inet6_option_find() 378 if ((optlen = ip6optlen(optp, lim)) == 0) in inet6_option_find() 497 uint8_t *optp = (uint8_t *)extbuf + offset; in inet6_opt_append() local 501 *optp = IP6OPT_PAD1; in inet6_opt_append() 502 optp++; in inet6_opt_append() 505 *optp++ = IP6OPT_PADN; in inet6_opt_append() 507 *optp++ = (uint8_t)(padlen - 2); in inet6_opt_append() [all …]
|
| /netbsd-src/sys/netinet/ |
| H A D | tcp_syncache.c | 878 unsigned int toff, struct socket *so, struct mbuf *m, u_char *optp, in syn_cache_add() argument 898 if (optp || (tp->t_flags & TF_SIGNATURE)) in syn_cache_add() 900 if (optp) in syn_cache_add() 908 if (tcp_dooptions(&tb, optp, optlen, th, m, toff, oi) < 0) in syn_cache_add() 1081 u_int8_t *optp; in syn_cache_respond() local 1172 optp = (u_int8_t *)(th + 1); in syn_cache_respond() 1174 *optp++ = TCPOPT_MAXSEG; in syn_cache_respond() 1175 *optp++ = TCPOLEN_MAXSEG; in syn_cache_respond() 1176 *optp++ = (sc->sc_ourmaxseg >> 8) & 0xff; in syn_cache_respond() 1177 *optp++ = sc->sc_ourmaxseg & 0xff; in syn_cache_respond() [all …]
|
| H A D | tcp_output.c | 518 u_char opt[MAX_TCPOPTLEN], *optp; in tcp_output() local 1051 optp = opt; in tcp_output() 1075 *optp++ = TCPOPT_MAXSEG; in tcp_output() 1076 *optp++ = TCPOLEN_MAXSEG; in tcp_output() 1077 *optp++ = (tp->t_ourmss >> 8) & 0xff; in tcp_output() 1078 *optp++ = tp->t_ourmss & 0xff; in tcp_output() 1085 *((uint32_t *)optp) = htonl( in tcp_output() 1090 optp += TCPOLEN_WINDOW + TCPOLEN_NOP; in tcp_output() 1094 *optp++ = TCPOPT_SACK_PERMITTED; in tcp_output() 1095 *optp in tcp_output() [all...] |
| H A D | dccp_usrreq.c | 198 u_char *optp = NULL; in dccp_input() local 519 optp = (u_char *)(dlh + 1); in dccp_input() 521 optp = (u_char *)(dh + 1); in dccp_input() 533 optp = (u_char *)(drqh + 1); in dccp_input() 543 optp = (u_char *)(drth + 1); in dccp_input() 560 optp = (u_char *)(drqh + 1); in dccp_input() 566 optp = (u_char *)(dalh + 1); in dccp_input() 570 optp = (u_char *)(dah + 1); in dccp_input() 601 memcpy(options, optp, optlen); in dccp_input() 1122 u_char *optp = NULL; in dccp_output() local [all …]
|
| H A D | tcp_input.c | 1194 u_int8_t *optp = NULL; in tcp_input() 1345 optp = ((u_int8_t *)th) + sizeof(struct tcphdr); in tcp_input() 1357 optp[TCPOLEN_TSTAMP_APPA] == TCPOPT_EOL)) && in tcp_input() 1358 be32dec(optp) == TCPOPT_TSTAMP_HDR && in tcp_input() 1361 opti.ts_val = be32dec(optp + 4); in tcp_input() 1362 opti.ts_ecr = be32dec(optp + 8); in tcp_input() 1363 optp = NULL; /* we've parsed the options */ in tcp_input() 1707 so, m, optp, optlen, &opti)) in tcp_input() 1732 if (optp || (tp->t_flags & TF_SIGNATURE)) in tcp_input() 1734 if (optp) in tcp_input() 1185 u_int8_t *optp = NULL; tcp_input() local [all...] |
| /netbsd-src/crypto/external/bsd/openssl/dist/apps/ |
| H A D | kdf.c | 51 static char *alloc_kdf_algorithm_name(STACK_OF(OPENSSL_STRING) **optp, in alloc_kdf_algorithm_name() argument 57 if (*optp == NULL) in alloc_kdf_algorithm_name() 58 *optp = sk_OPENSSL_STRING_new_null(); in alloc_kdf_algorithm_name() 59 if (*optp == NULL) in alloc_kdf_algorithm_name() 64 if (sk_OPENSSL_STRING_push(*optp, res)) in alloc_kdf_algorithm_name()
|
| H A D | mac.c | 55 static char *alloc_mac_algorithm_name(STACK_OF(OPENSSL_STRING) **optp, in alloc_mac_algorithm_name() argument 61 if (*optp == NULL) in alloc_mac_algorithm_name() 62 *optp = sk_OPENSSL_STRING_new_null(); in alloc_mac_algorithm_name() 63 if (*optp == NULL) in alloc_mac_algorithm_name() 68 if (sk_OPENSSL_STRING_push(*optp, res)) in alloc_mac_algorithm_name()
|
| /netbsd-src/sys/dist/pf/net/ |
| H A D | pf_osfp.c | 126 const u_int8_t *optp; in pf_osfp_fingerprint_hdr() local 194 optp = (const u_int8_t *)((const char *)tcp + sizeof(*tcp)); in pf_osfp_fingerprint_hdr() 195 for (; cnt > 0; cnt -= optlen, optp += optlen) { in pf_osfp_fingerprint_hdr() 196 if (*optp == TCPOPT_EOL) in pf_osfp_fingerprint_hdr() 200 if (*optp == TCPOPT_NOP) { in pf_osfp_fingerprint_hdr() 207 optlen = optp[1]; in pf_osfp_fingerprint_hdr() 210 switch (*optp) { in pf_osfp_fingerprint_hdr() 213 memcpy(&fp.fp_mss, &optp[2], in pf_osfp_fingerprint_hdr() 221 memcpy(&fp.fp_wscale, &optp[2], in pf_osfp_fingerprint_hdr() 235 memcpy(&ts, &optp[2], sizeof(ts)); in pf_osfp_fingerprint_hdr()
|
| H A D | pf_norm.c | 1885 u_char *optp; local 1889 optp = mtod(m, u_char *) + off + sizeof(struct tcphdr); 1891 for (; cnt > 0; cnt -= optlen, optp += optlen) { 1892 opt = optp[0]; 1900 optlen = optp[1]; 1906 mss = (u_int16_t *)(optp + 2);
|
| /netbsd-src/usr.sbin/mld6query/ |
| H A D | mld6.c | 163 void *hbhbuf = NULL, *optp = NULL; in make_msg() local 230 2, &optp)) == -1) in make_msg() 233 (void)inet6_opt_set_val(optp, 0, &rtalert_code, sizeof(rtalert_code)); in make_msg()
|
| /netbsd-src/external/bsd/flex/dist/src/ |
| H A D | scanopt.c | 663 const optspec_t *optp; in scanopt() local 757 optp = s->options + opt_offset; in scanopt() 771 return optp->r_val; in scanopt() 788 return optp->r_val; in scanopt() 795 return optp->r_val; in scanopt()
|
| /netbsd-src/sys/netinet6/ |
| H A D | raw_ip6.c | 375 struct ip6_pktopts opt, *optp = NULL; in rip6_output() local 391 optp = &opt; in rip6_output() 393 optp = in6p_outputopts(inp); in rip6_output() 440 error = in6_selectsrc(dstsock, optp, in6p_moptions(inp), in rip6_output() 507 error = ip6_output(m, optp, &inp->inp_route, 0, in rip6_output()
|
| H A D | ip6_output.c | 1432 struct ip6_pktopts **optp; in ip6_ctloutput() local 1441 optp = &in6p_outputopts(inp); in ip6_ctloutput() 1445 optp, in ip6_ctloutput() 1564 struct ip6_pktopts **optp; in ip6_ctloutput() local 1570 optp = &in6p_outputopts(inp); in ip6_ctloutput() 1574 optp, in ip6_ctloutput() 1587 struct ip6_pktopts **optp; in ip6_ctloutput() local 1588 optp = &in6p_outputopts(inp); in ip6_ctloutput() 1592 optp, in ip6_ctloutput() 1654 struct ip6_pktopts **optp; in ip6_ctloutput() local [all …]
|
| H A D | udp6_usrreq.c | 749 struct ip6_pktopts *optp = NULL; in udp6_output() 795 optp = &opt; in udp6_output() 797 optp = in6p_outputopts(inp); in udp6_output() 856 error = in6_selectsrc(sin6, optp, in udp6_output() 1009 error = ip6_output(m, optp, &inp->inp_route, 0, in udp6_output() 1056 if (optp == &opt) in udp6_output() 745 struct ip6_pktopts *optp = NULL; udp6_output() local
|
| H A D | ip6_input.c | 1035 ip6_unknown_opt(u_int8_t *optp, struct mbuf *m, int off) in ip6_unknown_opt() argument 1039 switch (IP6OPT_TYPE(*optp)) { in ip6_unknown_opt() 1041 return ((int)*(optp + 1)); in ip6_unknown_opt()
|
| /netbsd-src/external/bsd/am-utils/dist/amd/ |
| H A D | opts.c | 74 char **optp; /* Pointer to option value string */ member 516 *op->optp = opt; /* actual assignment into fs_static */ in split_opts() 1189 val = *op->optp; in expand_op()
|
| /netbsd-src/usr.sbin/rtadvd/ |
| H A D | rtadvd.c | 1042 struct nd_optlist *optp; in ra_input() local 1182 TAILQ_FOREACH(optp, &ndopts.nd_opts_list, next) in ra_input() 1183 if (prefix_check((struct nd_opt_prefix_info *)optp->opt, in ra_input()
|