/freebsd/contrib/netbsd-tests/ipf/expected/ |
H A D | n5_6 | 1 > zx0 ip6/0 1 0 255 10:1:1:0:0:0:0:0 > 10:1:1:0:0:0:0:2 2 > zx0 ip6/0 1 0 255 10:0:0:0:0:2:2:2 > 10:1:1:0:0:0:0:2 3 > zx0 ip6/0 1 0 255 10:1:1:0:0:0:0:2 > 10:1:1:0:0:0:0:1 4 > zx0 ip6/0 20 0 6 10:1:1:0:0:0:0:2,1025 > 10:1:1:0:0:0:0:1,1025 5 > zx0 ip6/0 20 0 6 10:1:1:0:0:0:0:2,1026 > 10:1:1:0:0:0:0:1,1025 6 > zx0 ip6/0 1 0 255 10:0:0:0:0:2:2:1 > 10:1:2:0:0:0:0:1 7 > zx0 ip6/0 1 0 255 10:0:0:0:0:2:2:2 > 10:1:2:0:0:0:0:1 8 < zx0 ip6/0 1 0 255 10:1:1:0:0:0:0:1 > 10:1:1:0:0:0:0:2 9 < zx0 ip6/0 1 0 255 10:1:1:0:0:0:0:2 > 10:1:1:0:0:0:0:1 10 < zx0 ip6/0 1 0 255 10:0:0:0:0:2:2:1 > 10:0:0:0:0:2:1:1 [all …]
|
H A D | n1_6 | 1 > zx0 ip6/0 1 0 255 10:1:1:0:0:0:0:0 > 10:1:1:0:0:0:0:2 2 > zx0 ip6/0 1 0 255 10:0:0:0:0:2:2:2 > 10:1:1:0:0:0:0:2 3 > zx0 ip6/0 1 0 255 10:1:1:0:0:0:0:2 > 10:1:1:0:0:0:0:1 4 > zx0 ip6/0 20 0 6 10:1:1:0:0:0:0:2,1025 > 10:1:1:0:0:0:0:1,1025 5 > zx0 ip6/0 20 0 6 10:1:1:0:0:0:0:2,1026 > 10:1:1:0:0:0:0:1,1025 6 > zx0 ip6/0 1 0 255 10:0:0:0:0:2:2:1 > 10:1:2:0:0:0:0:1 7 > zx0 ip6/0 1 0 255 10:0:0:0:0:2:2:2 > 10:1:2:0:0:0:0:1 8 < zx0 ip6/0 1 0 255 10:1:1:0:0:0:0:1 > 10:1:1:0:0:0:0:2 9 < zx0 ip6/0 1 0 255 10:1:1:0:0:0:0:2 > 10:1:1:0:0:0:0:1 10 < zx0 ip6/0 1 0 255 10:0:0:0:0:2:2:1 > 10:0:0:0:0:2:1:1 [all …]
|
H A D | n2_6 | 1 > zx0 ip6/0 20 0 6 10:0:0:0:0:2:2:2,10000 > 10:1:1:0:0:0:0:1,1025 2 > zx0 ip6/0 20 0 6 10:0:0:0:0:2:2:2,10001 > 10:1:1:0:0:0:0:2,1025 3 > zx0 ip6/0 1 0 41 10:1:1:0:0:0:0:0 > 10:1:1:0:0:0:0:2 4 > zx0 ip6/0 1 0 41 10:1:1:0:0:0:0:1 > 10:1:2:0:0:0:0:1 5 > zx0 ip6/0 20 0 6 10:1:1:0:0:0:0:2,1025 > 10:1:1:0:0:0:0:1,1025 6 > zx0 ip6/0 20 0 6 10:1:1:0:0:0:0:2,1025 > 10:1:1:0:0:0:0:1,1025 7 > zx0 ip6/0 20 0 6 10:1:1:0:0:0:0:2,1026 > 10:1:1:0:0:0:0:1,1025 8 > zx0 ip6/0 8 0 17 10:1:1:0:0:0:0:2,1025 > 10:1:1:0:0:0:0:1,1025 9 > zx0 ip6/0 20 0 6 10:1:1:0:0:0:0:3,2000 > 10:1:2:0:0:0:0:1,80 10 > zx0 ip6/0 20 0 6 10:1:1:0:0:0:0:3,2001 > 10:1:3:0:0:0:0:1,80 [all …]
|
H A D | n11_6 | 1 > zx0 ip6/0 1 0 255 10:1:1:0:0:0:0:0 > 10:1:1:0:0:0:0:2 2 > zx0 ip6/0 1 0 255 1:0:0:0:0:6:7:8 > 10:1:1:0:0:0:0:2 3 > zx0 ip6/0 1 0 255 10:1:1:0:0:0:0:2 > 10:1:1:0:0:0:0:1 4 > zx0 ip6/0 1 0 255 10:0:0:0:0:2:2:1 > 10:1:2:0:0:0:0:1 5 > zx0 ip6/0 1 0 255 10:0:0:0:0:2:2:2 > 10:1:2:0:0:0:0:1 6 < zx0 ip6/0 1 0 255 10:1:1:0:0:0:0:1 > 10:1:1:0:0:0:0:2 7 < zx0 ip6/0 1 0 255 10:1:1:0:0:0:0:2 > 10:1:1:0:0:0:0:1 8 < zx0 ip6/0 1 0 255 10:0:0:0:0:2:2:1 > 10:0:0:0:0:2:1:1 9 < zx0 ip6/0 1 0 255 10:0:0:0:0:2:2:2 > 10:0:0:0:0:2:1:1 10 < zx0 ip6/0 1 0 255 10:0:0:0:0:2:2:3 > 10:1:1:0:0:0:0:1 [all …]
|
H A D | n6_6 | 1 < zx0 ip6/0 20 0 6 10:0:0:0:0:2:2:2,12345 > 10:0:0:0:0:2:2:1,10023 2 < zx0 ip6/0 20 0 6 10:0:0:0:0:2:2:2,12345 > 10:1:1:0:0:0:0:2,23 3 < zx0 ip6/0 20 0 6 10:3:0:0:0:0:0:1,12345 > 10:1:2:0:0:0:0:2,23 4 < zx0 ip6/0 20 0 6 10:3:0:0:0:0:0:1,12345 > 10:0:0:0:0:2:2:2,23 5 < zx0 ip6/0 20 0 6 10:3:3:0:0:0:0:3,12345 > 10:0:0:0:0:2:2:1,10023 6 < zx0 ip6/0 20 0 6 10:0:0:0:0:2:2:2,12345 > 10:1:1:0:0:0:0:1,53 7 < zx0 ip6/0 20 0 6 10:3:3:0:0:0:0:3,12345 > 10:1:1:0:0:0:0:1,53 8 < zx0 ip6/0 20 0 6 10:0:0:0:0:2:2:2,12345 > 10:1:0:0:0:0:0:0,23 9 < zx0 ip6/0 20 0 6 10:3:3:0:0:0:0:3,12345 > 10:1:0:0:0:0:0:0,23 10 < zx0 ip6/0 8 0 17 10:0:0:0:0:2:2:2,12345 > 10:1:1:0:0:0:0:0,53 [all …]
|
H A D | n4_6 | 1 < zx0 ip6/0 20 0 6 10:3:3:0:0:0:0:3,12345 > 10:0:0:0:0:2:2:1,10023 2 > zx0 ip6/0 20 0 6 10:1:1:0:0:0:0:1,23 > 10:3:3:0:0:0:0:3,12345 3 < zx0 ip6/0 20 0 6 10:3:3:0:0:0:0:3,12345 > 10:1:1:0:0:0:0:1,53 4 > zx0 ip6/0 20 0 6 10:0:0:0:0:2:2:1,10053 > 10:3:3:0:0:0:0:3,12345 5 < zx0 ip6/0 20 0 6 10:3:3:0:0:0:0:3,12346 > 10:1:0:0:0:0:0:0,23 6 > zx0 ip6/0 20 0 6 10:0:0:0:0:2:2:1,10023 > 10:3:3:0:0:0:0:3,12346 7 < zx0 ip6/0 8 0 17 10:3:3:0:0:0:0:3,12345 > 10:1:1:0:0:0:0:0,53 8 > zx0 ip6/0 8 0 17 10:0:0:0:0:2:2:1,10053 > 10:3:3:0:0:0:0:3,12345 9 < zx0 ip6/0 20 0 6 10:3:3:0:0:0:0:3,12345 > 10:1:1:0:0:0:0:0,53 10 > zx0 ip6/0 20 0 6 10:0:0:0:0:2:2:1,53 > 10:3:3:0:0:0:0:3,12345 [all …]
|
H A D | n7_6 | 1 < zx0 ip6/0 20 0 6 10:0:0:0:0:2:3:1,1230 > 10:1:1:0:0:0:0:1,22 2 < zx0 ip6/0 20 0 6 10:0:0:0:0:2:3:1,1231 > 10:0:0:0:0:2:2:1,10023 3 < zx0 ip6/0 20 0 6 10:0:0:0:0:2:3:1,1232 > 10:0:0:0:0:2:2:1,10050 4 < zx0 ip6/0 20 0 6 10:0:0:0:0:2:3:1,1233 > 10:0:0:0:0:2:2:1,10079 5 < zx0 ip6/0 20 0 6 10:0:0:0:0:2:3:1,1234 > 10:1:1:0:0:0:0:1,80 6 < zx0 ip6/0 20 0 6 10:0:0:0:0:2:3:1,1235 > 10:1:1:0:0:0:0:2,80 7 < zx0 ip6/0 20 0 6 10:0:0:0:0:2:3:1,1236 > 10:1:1:0:0:0:0:3,80 8 < zx0 ip6/0 20 0 6 10:0:0:0:0:2:3:1,1237 > 10:1:1:0:0:0:0:4,80 9 < zx0 ip6/0 20 0 6 10:0:0:0:0:2:3:1,1238 > 10:1:1:0:0:0:0:4,80 33 < zx0 ip6/0 20 0 6 10:0:0:0:0:2:3:1,1230 > 10:1:1:0:0:0:0:1,22 [all …]
|
/freebsd/sys/netinet6/ |
H A D | ip6_forward.c | 93 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *); in ip6_forward() local 111 IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) || in ip6_forward() 112 IN6_IS_ADDR_UNSPECIFIED(&ip6->ip6_src)) { in ip6_forward() 119 ip6_sprintf(ip6bufs, &ip6->ip6_src), in ip6_forward() 120 ip6_sprintf(ip6bufd, &ip6->ip6_dst), in ip6_forward() 121 ip6->ip6_nxt, in ip6_forward() 132 ip6->ip6_hlim <= IPV6_HLIMDEC) { in ip6_forward() 153 ip6->ip6_hlim -= IPV6_HLIMDEC; in ip6_forward() 182 dst.sin6_addr = ip6->ip6_dst; in ip6_forward() 183 dst.sin6_scope_id = in6_get_unicast_scopeid(&ip6->ip6_dst, m->m_pkthdr.rcvif); in ip6_forward() [all …]
|
H A D | ip6_fastfwd.c | 50 #include <netinet/ip6.h> 96 struct ip6_hdr *ip6; in ip6_tryforward() local 104 ip6 = mtod(m, struct ip6_hdr *); in ip6_tryforward() 106 ip6->ip6_nxt == IPPROTO_HOPOPTS || in ip6_tryforward() 107 IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) || in ip6_tryforward() 108 IN6_IS_ADDR_LINKLOCAL(&ip6->ip6_dst) || in ip6_tryforward() 109 IN6_IS_ADDR_LINKLOCAL(&ip6->ip6_src) || in ip6_tryforward() 110 IN6_IS_ADDR_UNSPECIFIED(&ip6->ip6_dst) || in ip6_tryforward() 111 IN6_IS_ADDR_UNSPECIFIED(&ip6->ip6_src) || in ip6_tryforward() 112 in6_localip(&ip6 in ip6_tryforward() [all...] |
H A D | ip6_input.c | 111 #include <netinet/ip6.h> 139 .nh_name = "ip6", 229 TUNABLE_INT_FETCH("net.inet6.ip6.auto_linklocal", in ip6_vnet_init() 231 TUNABLE_INT_FETCH("net.inet6.ip6.accept_rtadv", &V_ip6_accept_rtadv); in ip6_vnet_init() 232 TUNABLE_INT_FETCH("net.inet6.ip6.no_radr", &V_ip6_no_radr); in ip6_vnet_init() 400 struct ip6_hdr *ip6; in ip6_input_hbh() local 412 ip6 = mtod(m, struct ip6_hdr *); in ip6_input_hbh() 419 if (ip6->ip6_plen == 0 && *plen == 0) { in ip6_input_hbh() 430 (caddr_t)&ip6->ip6_plen - (caddr_t)ip6); in ip6_input_hbh() 526 struct ip6_hdr *ip6; ip6_input() local 1001 struct ip6_hdr *ip6; ip6_process_hopopts() local 1133 struct ip6_hdr *ip6; ip6_unknown_opt() local 1179 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *); ip6_savecontrol_v4() local 1377 struct ip6_hdr *ip6; ip6_savecontrol() local 1593 struct ip6_hdr *ip6; ip6_get_prevhdr() local 1629 struct ip6_hdr ip6; ip6_nexthdr() local [all...] |
H A D | in6_gif.c | 205 struct ip6_hdr *ip6; in in6_gif_ioctl() local 248 ip6 = malloc(sizeof(*ip6), M_GIF, M_WAITOK | M_ZERO); in in6_gif_ioctl() 249 ip6->ip6_src = src->sin6_addr; in in6_gif_ioctl() 250 ip6->ip6_dst = dst->sin6_addr; in in6_gif_ioctl() 251 ip6->ip6_vfc = IPV6_VERSION; in in6_gif_ioctl() 261 sc->gif_ip6hdr = ip6; in in6_gif_ioctl() 291 struct ip6_hdr *ip6; in in6_gif_output() local 299 ip6 = mtod(m, struct ip6_hdr *); in in6_gif_output() 301 memcpy(ip6, sc->gif_ip6hdr, sizeof(struct ip6_hdr)); in in6_gif_output() 303 ip6->ip6_flow |= htonl((uint32_t)ecn << 20); in in6_gif_output() [all …]
|
H A D | nd6_nbr.c | 130 struct ip6_hdr *ip6; in nd6_ns_input() local 147 ip6 = mtod(m, struct ip6_hdr *); in nd6_ns_input() 148 if (__predict_false(ip6->ip6_hlim != 255)) { in nd6_ns_input() 152 ip6->ip6_hlim, ip6_sprintf(ip6bufs, &ip6->ip6_src), in nd6_ns_input() 153 ip6_sprintf(ip6bufd, &ip6->ip6_dst), if_name(ifp))); in nd6_ns_input() 164 ip6 = mtod(m, struct ip6_hdr *); in nd6_ns_input() 165 nd_ns = (struct nd_neighbor_solicit *)((caddr_t)ip6 + off); in nd6_ns_input() 167 saddr6 = ip6->ip6_src; in nd6_ns_input() 168 daddr6 = ip6->ip6_dst; in nd6_ns_input() 231 if (IN6_IS_ADDR_UNSPECIFIED(&ip6->ip6_src) && lladdr) { in nd6_ns_input() [all …]
|
H A D | udp6_usrreq.c | 219 struct ip6_hdr *ip6; member 235 !IN6_ARE_ADDR_EQUAL(&inp->in6p_laddr, &ctx->ip6->ip6_dst)) in udp6_multi_match() 238 (!IN6_ARE_ADDR_EQUAL(&inp->in6p_faddr, &ctx->ip6->ip6_src) || in udp6_multi_match() 272 ctx.ip6 = mtod(m, struct ip6_hdr *); in udp6_multi_input() 273 ctx.uh = (struct udphdr *)((char *)ctx.ip6 + off); in udp6_multi_input() 293 mcaddr.sin6_addr = ctx.ip6->ip6_dst; in udp6_multi_input() 309 UDPLITE_PROBE(receive, NULL, inp, ctx.ip6, in udp6_multi_input() 312 UDP_PROBE(receive, NULL, inp, ctx.ip6, inp, in udp6_multi_input() 352 struct ip6_hdr *ip6; in udp6_input() local 376 ip6 = mtod(m, struct ip6_hdr *); in udp6_input() [all …]
|
H A D | raw_ip6.c | 153 struct ip6_hdr *ip6; member 161 struct ip6_hdr *ip6 = c->ip6; in rip6_inp_match() local 170 !IN6_ARE_ADDR_EQUAL(&inp->in6p_laddr, &ip6->ip6_dst)) in rip6_inp_match() 173 !IN6_ARE_ADDR_EQUAL(&inp->in6p_faddr, &ip6->ip6_src)) in rip6_inp_match() 188 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *); in rip6_input() local 192 struct rip6_inp_match_ctx ctx = { .ip6 = ip6, .proto = proto }; in rip6_input() 220 !IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) && in rip6_input() 221 prison_check_ip6(inp->inp_cred, &ip6->ip6_dst) != 0) in rip6_input() 257 IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { in rip6_input() 284 mcaddr.sin6_addr = ip6->ip6_dst; in rip6_input() [all …]
|
H A D | in6_cksum.c | 91 _in6_cksum_pseudo(struct ip6_hdr *ip6, uint32_t len, uint8_t nxt, uint16_t csum) in _in6_cksum_pseudo() argument 118 scope = in6_getscope(&ip6->ip6_src); in _in6_cksum_pseudo() 119 w = (u_int16_t *)&ip6->ip6_src; in _in6_cksum_pseudo() 126 scope = in6_getscope(&ip6->ip6_dst); in _in6_cksum_pseudo() 127 w = (u_int16_t *)&ip6->ip6_dst; in _in6_cksum_pseudo() 137 in6_cksum_pseudo(struct ip6_hdr *ip6, uint32_t len, uint8_t nxt, uint16_t csum) in in6_cksum_pseudo() argument 142 sum = _in6_cksum_pseudo(ip6, len, nxt, csum); in in6_cksum_pseudo() 262 struct ip6_hdr *ip6; in in6_cksum_partial() local 277 KASSERT(m->m_len >= sizeof(*ip6), in in6_cksum_partial() 291 ip6 = mtod(m, struct ip6_hdr *); in in6_cksum_partial() [all …]
|
H A D | icmp6.c | 241 struct ip6_hdr *ip6; in icmp6_error2() local 253 ip6 = mtod(m, struct ip6_hdr *); in icmp6_error2() 255 if (in6_setscope(&ip6->ip6_src, ifp, NULL) != 0) in icmp6_error2() 257 if (in6_setscope(&ip6->ip6_dst, ifp, NULL) != 0) in icmp6_error2() 454 struct ip6_hdr *ip6, *nip6; in icmp6_input() local 484 ip6 = mtod(m, struct ip6_hdr *); in icmp6_input() 490 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { in icmp6_input() 493 inm = in6m_lookup(ifp, &ip6->ip6_dst); in icmp6_input() 502 icmp6 = (struct icmp6_hdr *)((caddr_t)ip6 + off); in icmp6_input() 508 ip6_sprintf(ip6bufs, &ip6->ip6_src))); in icmp6_input() [all …]
|
H A D | in6_rss.c | 210 const struct ip6_hdr *ip6; in rss_mbuf_software_hash_v6() local 243 ip6 = mtod(m, struct ip6_hdr *); in rss_mbuf_software_hash_v6() 244 proto = ip6->ip6_nxt; in rss_mbuf_software_hash_v6() 270 ip6f = (const struct ip6_frag *)((c_caddr_t)ip6 + off); in rss_mbuf_software_hash_v6() 344 th = (const struct tcphdr *)((c_caddr_t)ip6 + off); in rss_mbuf_software_hash_v6() 345 return rss_proto_software_hash_v6(&ip6->ip6_src, &ip6->ip6_dst, in rss_mbuf_software_hash_v6() 357 uh = (const struct udphdr *)((c_caddr_t)ip6 + off); in rss_mbuf_software_hash_v6() 358 return rss_proto_software_hash_v6(&ip6->ip6_src, &ip6->ip6_dst, in rss_mbuf_software_hash_v6() 366 return rss_proto_software_hash_v6(&ip6->ip6_src, &ip6->ip6_dst, in rss_mbuf_software_hash_v6()
|
H A D | send.c | 113 struct ip6_hdr *ip6; in send_output() local 143 ip6 = mtod(m, struct ip6_hdr *); in send_output() 144 icmp6 = (struct icmp6_hdr *)(ip6 + 1); in send_output() 183 ip6 = mtod(m, struct ip6_hdr *); in send_output() 184 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) in send_output() 190 dst.sin6_addr = ip6->ip6_dst; in send_output() 194 IP_PROBE(send, NULL, NULL, ip6, ifp, NULL, ip6); in send_output() 277 struct ip6_hdr *ip6; in send_input() local 291 ip6 = mtod(m, struct ip6_hdr *); in send_input() 292 in6_clearscope(&ip6->ip6_src); in send_input() [all …]
|
/freebsd/contrib/tcpdump/ |
H A D | print-ip6.c | 46 const struct ip6_hdr *ip6) in ip6_finddst() argument 58 cp = (const u_char *)ip6; in ip6_finddst() 60 nh = GET_U_1(ip6->ip6_nxt); in ip6_finddst() 61 dst_addr = (const void *)ip6->ip6_dst; in ip6_finddst() 172 const struct ip6_hdr *ip6, const uint8_t *data, in nextproto6_cksum() argument 187 GET_CPY_BYTES(&ph.ph_src, ip6->ip6_src, sizeof(nd_ipv6)); in nextproto6_cksum() 188 nh = GET_U_1(ip6->ip6_nxt); in nextproto6_cksum() 202 ip6_finddst(ndo, &ph.ph_dst, ip6); in nextproto6_cksum() 206 GET_CPY_BYTES(&ph.ph_dst, ip6->ip6_dst, sizeof(nd_ipv6)); in nextproto6_cksum() 226 const struct ip6_hdr *ip6; in ip6_print() local [all …]
|
/freebsd/sbin/ipf/libipf/ |
H A D | ipft_tx.c | 332 parseipv6(char **cpp, ip6_t *ip6, char **ifn, int *out) in parseipv6() argument 337 bzero((char *)ip6, MAX(sizeof(*tcp), sizeof(*ic6)) + sizeof(*ip6)); in parseipv6() 340 ip6->ip6_vfc = 0x60; in parseipv6() 357 ip6->ip6_nxt = IPPROTO_TCP; in parseipv6() 361 ip6->ip6_nxt = IPPROTO_UDP; in parseipv6() 365 ip6->ip6_nxt = IPPROTO_ICMPV6; in parseipv6() 369 ip6->ip6_nxt = atoi(*cpp); in parseipv6() 372 ip6->ip6_nxt = IPPROTO_IPV6; in parseipv6() 377 switch (ip6->ip6_nxt) in parseipv6() 380 ip6->ip6_plen = sizeof(struct tcphdr); in parseipv6() [all …]
|
/freebsd/sys/netpfil/ipfw/nat64/ |
H A D | nat64_translate.c | 180 struct ip6_hdr *ip6; in nat64_direct_output_one() local 200 ip6 = mtod(m, struct ip6_hdr *); in nat64_direct_output_one() 201 dst6.sin6_addr = ip6->ip6_dst; in nat64_direct_output_one() 352 nat64_embed_ip4(struct in6_addr *ip6, int plen, in_addr_t ia) in nat64_embed_ip4() argument 358 ip6->s6_addr32[plen / 32] = ia; in nat64_embed_ip4() 368 ip6->s6_addr32[1] &= 0xffffffff << (32 - plen % 32); in nat64_embed_ip4() 370 ip6->s6_addr32[1] |= ia >> (plen % 32); in nat64_embed_ip4() 371 ip6->s6_addr32[2] = ia << (24 - plen % 32); in nat64_embed_ip4() 373 ip6->s6_addr32[1] |= ia << (plen % 32); in nat64_embed_ip4() 374 ip6->s6_addr32[2] = ia >> (24 - plen % 32); in nat64_embed_ip4() [all …]
|
/freebsd/sys/netpfil/ipfw/nptv6/ |
H A D | nptv6.c | 113 struct ip6_hdr *ip6; in nptv6_getlasthdr() local 120 ip6 = mtodo(m, hlen); in nptv6_getlasthdr() 121 hlen += sizeof(*ip6); in nptv6_getlasthdr() 122 proto = ip6->ip6_nxt; in nptv6_getlasthdr() 140 struct ip6_hdr *ip6; in nptv6_translate_icmpv6() local 167 if (offset + sizeof(*ip6) > m->m_pkthdr.len) in nptv6_translate_icmpv6() 169 if (offset + sizeof(*ip6) > m->m_len) in nptv6_translate_icmpv6() 170 *mp = m = m_pullup(m, offset + sizeof(*ip6)); in nptv6_translate_icmpv6() 173 ip6 = mtodo(m, offset); in nptv6_translate_icmpv6() 175 inet_ntop(AF_INET6, &ip6->ip6_src, _s, sizeof(_s)), in nptv6_translate_icmpv6() [all …]
|
/freebsd/sys/netipsec/ |
H A D | udpencap.c | 161 struct ip6_hdr *ip6; in udp_ipsec_input() local 164 ip6 = mtod(m, struct ip6_hdr *); in udp_ipsec_input() 165 ip6->ip6_nxt = IPPROTO_ESP; in udp_ipsec_input() 168 dst.sin6.sin6_addr = ip6->ip6_dst; in udp_ipsec_input() 295 struct ip6_hdr *ip6; in udp_ipsec_output() local 297 ip6 = mtod(m, struct ip6_hdr *); in udp_ipsec_output() 298 KASSERT(ip6->ip6_nxt == IPPROTO_ESP, in udp_ipsec_output() 299 ("unexpected next header type %d", ip6->ip6_nxt)); in udp_ipsec_output() 300 ip6->ip6_plen = htons(m->m_pkthdr.len); in udp_ipsec_output() 301 ip6->ip6_nxt = IPPROTO_UDP; in udp_ipsec_output() [all …]
|
/freebsd/sys/netinet/ |
H A D | in_kdtrace.h | 90 SDT_PROBE_DECLARE(mib, ip6, count, ip6s_total); 91 SDT_PROBE_DECLARE(mib, ip6, count, ip6s_tooshort); 92 SDT_PROBE_DECLARE(mib, ip6, count, ip6s_toosmall); 93 SDT_PROBE_DECLARE(mib, ip6, count, ip6s_fragments); 94 SDT_PROBE_DECLARE(mib, ip6, count, ip6s_fragdropped); 95 SDT_PROBE_DECLARE(mib, ip6, count, ip6s_fragtimeout); 96 SDT_PROBE_DECLARE(mib, ip6, count, ip6s_fragoverflow); 97 SDT_PROBE_DECLARE(mib, ip6, count, ip6s_forward); 98 SDT_PROBE_DECLARE(mib, ip6, count, ip6s_cantforward); 99 SDT_PROBE_DECLARE(mib, ip6, count, ip6s_redirectsent); [all …]
|
/freebsd/tests/sys/netinet6/ |
H A D | forward6.sh | 83 jexec ${jname} sysctl net.inet6.ip6.forwarding=1 85 jexec ${jname} sysctl net.inet6.ip6.redirect=0 94 atf_check -o match:'1 packet forwarded' jexec ${jname} netstat -sp ip6 157 jexec ${jname} sysctl net.inet6.ip6.forwarding=1 159 jexec ${jname} sysctl net.inet6.ip6.redirect=0 168 atf_check -o match:'1 packet forwarded' jexec ${jname} netstat -sp ip6 232 jexec ${jname} sysctl net.inet6.ip6.forwarding=1 234 jexec ${jname} sysctl net.inet6.ip6.redirect=0 243 atf_check -o match:'1 packet forwarded' jexec ${jname} netstat -sp ip6 302 jexec ${jname} sysctl net.inet6.ip6.forwarding=1 [all …]
|