| /freebsd-14-stable/contrib/netbsd-tests/ipf/expected/ |
| HD | 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 …]
|
| HD | 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 …]
|
| HD | 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 …]
|
| HD | 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 …]
|
| HD | 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 …]
|
| HD | 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 …]
|
| HD | 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-14-stable/sys/netinet6/ |
| HD | 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 …]
|
| HD | ip6_fastfwd.c | 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->ip6_dst)) in ip6_tryforward() 121 plen = ntohs(ip6->ip6_plen); in ip6_tryforward() [all …]
|
| HD | ip6_input.c | 402 struct ip6_hdr *ip6; in ip6_input_hbh() local 414 ip6 = mtod(m, struct ip6_hdr *); in ip6_input_hbh() 421 if (ip6->ip6_plen == 0 && *plen == 0) { in ip6_input_hbh() 432 (caddr_t)&ip6->ip6_plen - (caddr_t)ip6); in ip6_input_hbh() 436 hbh = (struct ip6_hbh *)(ip6 + 1); in ip6_input_hbh() 528 struct ip6_hdr *ip6; in ip6_input() local 560 ip6 = mtod(m, struct ip6_hdr *); in ip6_input() 615 ip6 = mtod(m, struct ip6_hdr *); in ip6_input() 616 if ((ip6->ip6_vfc & IPV6_VERSION_MASK) != IPV6_VERSION) { in ip6_input() 622 IP6STAT_INC(ip6s_nxthist[ip6->ip6_nxt]); in ip6_input() [all …]
|
| HD | 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 …]
|
| HD | 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 …]
|
| HD | udp6_usrreq.c | 211 struct ip6_hdr *ip6; member 227 !IN6_ARE_ADDR_EQUAL(&inp->in6p_laddr, &ctx->ip6->ip6_dst)) in udp6_multi_match() 230 (!IN6_ARE_ADDR_EQUAL(&inp->in6p_faddr, &ctx->ip6->ip6_src) || in udp6_multi_match() 264 ctx.ip6 = mtod(m, struct ip6_hdr *); in udp6_multi_input() 265 ctx.uh = (struct udphdr *)((char *)ctx.ip6 + off); in udp6_multi_input() 285 mcaddr.sin6_addr = ctx.ip6->ip6_dst; in udp6_multi_input() 301 UDPLITE_PROBE(receive, NULL, inp, ctx.ip6, in udp6_multi_input() 304 UDP_PROBE(receive, NULL, inp, ctx.ip6, inp, in udp6_multi_input() 344 struct ip6_hdr *ip6; in udp6_input() local 368 ip6 = mtod(m, struct ip6_hdr *); in udp6_input() [all …]
|
| HD | raw_ip6.c | 155 struct ip6_hdr *ip6; member 163 struct ip6_hdr *ip6 = c->ip6; in rip6_inp_match() local 172 !IN6_ARE_ADDR_EQUAL(&inp->in6p_laddr, &ip6->ip6_dst)) in rip6_inp_match() 175 !IN6_ARE_ADDR_EQUAL(&inp->in6p_faddr, &ip6->ip6_src)) in rip6_inp_match() 190 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *); in rip6_input() local 194 struct rip6_inp_match_ctx ctx = { .ip6 = ip6, .proto = proto }; in rip6_input() 222 !IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) && in rip6_input() 223 prison_check_ip6(inp->inp_cred, &ip6->ip6_dst) != 0) in rip6_input() 259 IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { in rip6_input() 286 mcaddr.sin6_addr = ip6->ip6_dst; in rip6_input() [all …]
|
| HD | in6_cksum.c | 94 _in6_cksum_pseudo(struct ip6_hdr *ip6, uint32_t len, uint8_t nxt, uint16_t csum) in _in6_cksum_pseudo() argument 121 scope = in6_getscope(&ip6->ip6_src); in _in6_cksum_pseudo() 122 w = (u_int16_t *)&ip6->ip6_src; in _in6_cksum_pseudo() 129 scope = in6_getscope(&ip6->ip6_dst); in _in6_cksum_pseudo() 130 w = (u_int16_t *)&ip6->ip6_dst; in _in6_cksum_pseudo() 140 in6_cksum_pseudo(struct ip6_hdr *ip6, uint32_t len, uint8_t nxt, uint16_t csum) in in6_cksum_pseudo() argument 145 sum = _in6_cksum_pseudo(ip6, len, nxt, csum); in in6_cksum_pseudo() 266 struct ip6_hdr *ip6; in in6_cksum_partial_l2() local 282 KASSERT(m->m_len >= off_l3 + sizeof(*ip6), in in6_cksum_partial_l2() 296 ip6 = mtodo(m, off_l3); in in6_cksum_partial_l2() [all …]
|
| HD | 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()
|
| HD | send.c | 114 struct ip6_hdr *ip6; in send_output() local 144 ip6 = mtod(m, struct ip6_hdr *); in send_output() 145 icmp6 = (struct icmp6_hdr *)(ip6 + 1); in send_output() 184 ip6 = mtod(m, struct ip6_hdr *); in send_output() 185 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) in send_output() 191 dst.sin6_addr = ip6->ip6_dst; in send_output() 195 IP_PROBE(send, NULL, NULL, ip6, ifp, NULL, ip6); in send_output() 278 struct ip6_hdr *ip6; in send_input() local 292 ip6 = mtod(m, struct ip6_hdr *); in send_input() 293 in6_clearscope(&ip6->ip6_src); in send_input() [all …]
|
| HD | icmp6.c | 243 struct ip6_hdr *ip6; in icmp6_error2() local 255 ip6 = mtod(m, struct ip6_hdr *); in icmp6_error2() 257 if (in6_setscope(&ip6->ip6_src, ifp, NULL) != 0) in icmp6_error2() 259 if (in6_setscope(&ip6->ip6_dst, ifp, NULL) != 0) in icmp6_error2() 456 struct ip6_hdr *ip6, *nip6; in icmp6_input() local 486 ip6 = mtod(m, struct ip6_hdr *); in icmp6_input() 492 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { in icmp6_input() 495 inm = in6m_lookup(ifp, &ip6->ip6_dst); in icmp6_input() 504 icmp6 = (struct icmp6_hdr *)((caddr_t)ip6 + off); in icmp6_input() 510 ip6_sprintf(ip6bufs, &ip6->ip6_src))); in icmp6_input() [all …]
|
| /freebsd-14-stable/contrib/tcpdump/ |
| HD | 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-14-stable/sbin/ipf/libipf/ |
| HD | ipft_tx.c | 335 parseipv6(char **cpp, ip6_t *ip6, char **ifn, int *out) in parseipv6() argument 340 bzero((char *)ip6, MAX(sizeof(*tcp), sizeof(*ic6)) + sizeof(*ip6)); in parseipv6() 343 ip6->ip6_vfc = 0x60; in parseipv6() 360 ip6->ip6_nxt = IPPROTO_TCP; in parseipv6() 364 ip6->ip6_nxt = IPPROTO_UDP; in parseipv6() 368 ip6->ip6_nxt = IPPROTO_ICMPV6; in parseipv6() 372 ip6->ip6_nxt = atoi(*cpp); in parseipv6() 375 ip6->ip6_nxt = IPPROTO_IPV6; in parseipv6() 380 switch (ip6->ip6_nxt) in parseipv6() 383 ip6->ip6_plen = sizeof(struct tcphdr); in parseipv6() [all …]
|
| /freebsd-14-stable/sys/netpfil/ipfw/nat64/ |
| HD | 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-14-stable/sys/netpfil/ipfw/nptv6/ |
| HD | nptv6.c | 114 struct ip6_hdr *ip6; in nptv6_getlasthdr() local 121 ip6 = mtodo(m, hlen); in nptv6_getlasthdr() 122 hlen += sizeof(*ip6); in nptv6_getlasthdr() 123 proto = ip6->ip6_nxt; in nptv6_getlasthdr() 141 struct ip6_hdr *ip6; in nptv6_translate_icmpv6() local 168 if (offset + sizeof(*ip6) > m->m_pkthdr.len) in nptv6_translate_icmpv6() 170 if (offset + sizeof(*ip6) > m->m_len) in nptv6_translate_icmpv6() 171 *mp = m = m_pullup(m, offset + sizeof(*ip6)); in nptv6_translate_icmpv6() 174 ip6 = mtodo(m, offset); in nptv6_translate_icmpv6() 176 inet_ntop(AF_INET6, &ip6->ip6_src, _s, sizeof(_s)), in nptv6_translate_icmpv6() [all …]
|
| /freebsd-14-stable/sys/netipsec/ |
| HD | ipsec_output.c | 500 struct ip6_hdr *ip6; in ipsec6_allocsa() local 524 ip6 = mtod(m, struct ip6_hdr *); in ipsec6_allocsa() 530 sin6->sin6_addr = ip6->ip6_src; in ipsec6_allocsa() 531 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_src)) { in ipsec6_allocsa() 535 ntohs(ip6->ip6_src.s6_addr16[1]); in ipsec6_allocsa() 543 sin6->sin6_addr = ip6->ip6_dst; in ipsec6_allocsa() 544 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_dst)) { in ipsec6_allocsa() 548 ntohs(ip6->ip6_dst.s6_addr16[1]); in ipsec6_allocsa() 588 struct ip6_hdr *ip6; in ipsec6_perform_request() local 603 ip6 = mtod(m, struct ip6_hdr *); in ipsec6_perform_request() [all …]
|
| /freebsd-14-stable/tests/sys/netinet6/ |
| HD | exthdr.py | 40 ip6 = packet.getlayer(sp.IPv6) 41 if not ip6: 44 if ip6.dst != oip6.src: 59 ip6 = packet.getlayer(sp.IPv6) 60 if not ip6: 63 if ip6.dst != oip6.src: 78 ip6 = packet.getlayer(sp.IPv6) 79 if not ip6: 82 if ip6.dst != oip6.src: 245 ip6 = sp.Ether() / sp.IPv6(src=args.src[0], dst=args.to[0]) [all …]
|
| /freebsd-14-stable/libexec/rc/rc.d/ |
| HD | netoptions | 98 ${SYSCTL} net.inet6.ip6.v6only=0 >/dev/null 100 ${SYSCTL} net.inet6.ip6.v6only=1 >/dev/null 106 ${SYSCTL} net.inet6.ip6.use_tempaddr=1 >/dev/null 107 ${SYSCTL} net.inet6.ip6.prefer_tempaddr=1 >/dev/null 112 ${SYSCTL} net.inet6.ip6.no_radr=0 >/dev/null 113 ${SYSCTL} net.inet6.ip6.rfc6204w3=0 >/dev/null 118 ${SYSCTL} net.inet6.ip6.no_radr=1 >/dev/null 119 ${SYSCTL} net.inet6.ip6.rfc6204w3=1 >/dev/null
|