Home
last modified time | relevance | path

Searched refs:ip6 (Results 1 – 25 of 286) sorted by relevance

12345678910>>...12

/freebsd/contrib/netbsd-tests/ipf/expected/
H A Dn5_61 > 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 Dn1_61 > 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 Dn2_61 > 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 Dn11_61 > 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 Dn6_61 < 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 Dn4_61 < 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 Dn7_61 < 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 Dip6_forward.c96 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *); in ip6_forward() local
114 IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) || in ip6_forward()
115 IN6_IS_ADDR_UNSPECIFIED(&ip6->ip6_src) || in ip6_forward()
116 IN6_IS_ADDR_UNSPECIFIED(&ip6->ip6_dst)) { in ip6_forward()
123 ip6_sprintf(ip6bufs, &ip6->ip6_src), in ip6_forward()
124 ip6_sprintf(ip6bufd, &ip6->ip6_dst), in ip6_forward()
125 ip6->ip6_nxt, in ip6_forward()
136 ip6->ip6_hlim <= IPV6_HLIMDEC) { in ip6_forward()
157 ip6->ip6_hlim -= IPV6_HLIMDEC; in ip6_forward()
186 dst.sin6_addr = ip6->ip6_dst; in ip6_forward()
[all …]
H A Dip6_fastfwd.c100 struct ip6_hdr *ip6; in ip6_tryforward() local
108 ip6 = mtod(m, struct ip6_hdr *); in ip6_tryforward()
110 ip6->ip6_nxt == IPPROTO_HOPOPTS || in ip6_tryforward()
111 IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) || in ip6_tryforward()
112 IN6_IS_ADDR_LINKLOCAL(&ip6->ip6_dst) || in ip6_tryforward()
113 IN6_IS_ADDR_LINKLOCAL(&ip6->ip6_src) || in ip6_tryforward()
114 IN6_IS_ADDR_UNSPECIFIED(&ip6->ip6_dst) || in ip6_tryforward()
115 IN6_IS_ADDR_UNSPECIFIED(&ip6->ip6_src) || in ip6_tryforward()
116 in6_localip_fib(&ip6->ip6_dst, M_GETFIB(m))) in ip6_tryforward()
125 plen = ntohs(ip6->ip6_plen); in ip6_tryforward()
[all …]
H A Dip6_input.c109 #include <netinet/ip6.h>
138 .nh_name = "ip6",
233 TUNABLE_INT_FETCH("net.inet6.ip6.auto_linklocal", in ip6_vnet_init()
235 TUNABLE_INT_FETCH("net.inet6.ip6.accept_rtadv", &V_ip6_accept_rtadv); in ip6_vnet_init()
236 TUNABLE_INT_FETCH("net.inet6.ip6.no_radr", &V_ip6_no_radr); in ip6_vnet_init()
237 TUNABLE_BOOL_FETCH("net.inet6.ip6.use_stableaddr", &V_ip6_use_stableaddr); in ip6_vnet_init()
414 struct ip6_hdr *ip6; in ip6_input_hbh() local
425 ip6 = mtod(m, struct ip6_hdr *); in ip6_input_hbh()
428 hbh = (struct ip6_hbh *)(ip6 + 1); in ip6_input_hbh()
520 struct ip6_hdr *ip6; in ip6_direct_input()
535 struct ip6_hdr *ip6; ip6_input() local
1079 struct ip6_hdr *ip6; ip6_unknown_opt() local
1125 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *); ip6_savecontrol_v4() local
1342 struct ip6_hdr *ip6; ip6_savecontrol() local
1558 struct ip6_hdr *ip6; ip6_get_prevhdr() local
1594 struct ip6_hdr ip6; ip6_nexthdr() local
[all...]
H A Din6_gif.c212 struct ip6_hdr *ip6; in in6_gif_ioctl() local
262 ip6 = malloc(sizeof(*ip6), M_GIF, M_WAITOK | M_ZERO); in in6_gif_ioctl()
263 ip6->ip6_src = src->sin6_addr; in in6_gif_ioctl()
264 ip6->ip6_dst = dst->sin6_addr; in in6_gif_ioctl()
265 ip6->ip6_vfc = IPV6_VERSION; in in6_gif_ioctl()
275 sc->gif_ip6hdr = ip6; in in6_gif_ioctl()
305 struct ip6_hdr *ip6; in in6_gif_output() local
314 ip6 = mtod(m, struct ip6_hdr *); in in6_gif_output()
316 memcpy(ip6, sc->gif_ip6hdr, sizeof(struct ip6_hdr)); in in6_gif_output()
318 ip6->ip6_flow |= htonl((uint32_t)ecn << 20); in in6_gif_output()
[all …]
H A Dnd6_nbr.c146 struct ip6_hdr *ip6; in nd6_ns_input() local
164 ip6 = mtod(m, struct ip6_hdr *); in nd6_ns_input()
165 if (__predict_false(ip6->ip6_hlim != 255)) { in nd6_ns_input()
169 ip6->ip6_hlim, ip6_sprintf(ip6bufs, &ip6->ip6_src), in nd6_ns_input()
170 ip6_sprintf(ip6bufd, &ip6->ip6_dst), if_name(ifp))); in nd6_ns_input()
181 ip6 = mtod(m, struct ip6_hdr *); in nd6_ns_input()
182 nd_ns = (struct nd_neighbor_solicit *)((caddr_t)ip6 + off); in nd6_ns_input()
184 saddr6 = ip6->ip6_src; in nd6_ns_input()
185 daddr6 = ip6->ip6_dst; in nd6_ns_input()
248 if (IN6_IS_ADDR_UNSPECIFIED(&ip6->ip6_src) && lladdr) { in nd6_ns_input()
[all …]
H A Dudp6_usrreq.c222 struct ip6_hdr *ip6; member
238 !IN6_ARE_ADDR_EQUAL(&inp->in6p_laddr, &ctx->ip6->ip6_dst)) in udp6_multi_match()
241 (!IN6_ARE_ADDR_EQUAL(&inp->in6p_faddr, &ctx->ip6->ip6_src) || in udp6_multi_match()
275 ctx.ip6 = mtod(m, struct ip6_hdr *); in udp6_multi_input()
276 ctx.uh = (struct udphdr *)((char *)ctx.ip6 + off); in udp6_multi_input()
296 mcaddr.sin6_addr = ctx.ip6->ip6_dst; in udp6_multi_input()
312 UDPLITE_PROBE(receive, NULL, inp, ctx.ip6, in udp6_multi_input()
315 UDP_PROBE(receive, NULL, inp, ctx.ip6, inp, in udp6_multi_input()
355 struct ip6_hdr *ip6; in udp6_input() local
379 ip6 = mtod(m, struct ip6_hdr *); in udp6_input()
[all …]
H A Draw_ip6.c151 struct ip6_hdr *ip6; member
159 struct ip6_hdr *ip6 = c->ip6; in rip6_inp_match() local
168 !IN6_ARE_ADDR_EQUAL(&inp->in6p_laddr, &ip6->ip6_dst)) in rip6_inp_match()
171 !IN6_ARE_ADDR_EQUAL(&inp->in6p_faddr, &ip6->ip6_src)) in rip6_inp_match()
186 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *); in rip6_input() local
190 struct rip6_inp_match_ctx ctx = { .ip6 = ip6, .proto = proto }; in rip6_input()
218 !IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) && in rip6_input()
219 prison_check_ip6(inp->inp_cred, &ip6->ip6_dst) != 0) in rip6_input()
255 IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { in rip6_input()
282 mcaddr.sin6_addr = ip6->ip6_dst; in rip6_input()
[all …]
H A Din6_cksum.c91 _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()
263 struct ip6_hdr *ip6; in in6_cksum_partial_l2() local
279 KASSERT(m->m_len >= off_l3 + sizeof(*ip6), in in6_cksum_partial_l2()
293 ip6 = mtodo(m, off_l3); in in6_cksum_partial_l2()
[all …]
H A Dicmp6.c241 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 Din6_rss.c211 const struct ip6_hdr *ip6; in rss_mbuf_software_hash_v6() local
244 ip6 = mtod(m, struct ip6_hdr *); in rss_mbuf_software_hash_v6()
245 proto = ip6->ip6_nxt; in rss_mbuf_software_hash_v6()
271 ip6f = (const struct ip6_frag *)((c_caddr_t)ip6 + off); in rss_mbuf_software_hash_v6()
345 th = (const struct tcphdr *)((c_caddr_t)ip6 + off); in rss_mbuf_software_hash_v6()
346 return rss_proto_software_hash_v6(&ip6->ip6_src, &ip6->ip6_dst, in rss_mbuf_software_hash_v6()
358 uh = (const struct udphdr *)((c_caddr_t)ip6 + off); in rss_mbuf_software_hash_v6()
359 return rss_proto_software_hash_v6(&ip6->ip6_src, &ip6->ip6_dst, in rss_mbuf_software_hash_v6()
367 return rss_proto_software_hash_v6(&ip6->ip6_src, &ip6->ip6_dst, in rss_mbuf_software_hash_v6()
H A Dsend.c113 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 Dprint-ip6.c46 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 Dipft_tx.c332 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 Dnat64_translate.c180 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 Dnptv6.c113 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 Dudpencap.c161 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 Din_kdtrace.h90 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 Dforward6.sh83 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 …]

12345678910>>...12