@@ -221,49 +221,6 @@ int snat_v6_egress_udp_check(const struct __ctx_buff *ctx)
221221 test_finish ();
222222}
223223
224- int do_icmp6_pkt_too_big_check (const struct __ctx_buff * ctx )
225- {
226- struct ipv6hdr * l3 = NULL ;
227- struct ipv6hdr * inner_l3 = NULL ;
228- void * l4 = NULL ;
229- void * data = (void * )(long )ctx -> data ;
230- void * data_end = (void * )(long )ctx -> data_end ;
231-
232- if (data + sizeof (__u32 ) + sizeof (struct ethhdr ) + sizeof (struct ipv6hdr ) +
233- sizeof (struct icmp6hdr ) + sizeof (struct ipv6hdr ) +
234- 2 * sizeof (__u16 ) > data_end )
235- return TEST_FAIL ;
236-
237- l3 = (struct ipv6hdr * )(data + sizeof (__u32 ) + sizeof (struct ethhdr ));
238- if (memcmp (& l3 -> daddr , (void * )v6_pod_one , 16 ) > 0 )
239- return TEST_FAIL ;
240-
241- if (memcmp (& l3 -> saddr , (void * )v6_ext_node_one , 16 ) > 0 )
242- return TEST_FAIL ;
243-
244- if (l3 -> nexthdr != IPPROTO_ICMPV6 )
245- return TEST_FAIL ;
246-
247- inner_l3 = (struct ipv6hdr * )(data + sizeof (__u32 ) +
248- sizeof (struct ethhdr ) + sizeof (struct ipv6hdr ) +
249- sizeof (struct icmp6hdr ));
250-
251- if (memcmp (& inner_l3 -> daddr , (void * )v6_ext_node_one , 16 ) > 0 )
252- return TEST_FAIL ;
253-
254- if (memcmp (& inner_l3 -> saddr , (void * )v6_pod_one , 16 ) > 0 )
255- return TEST_FAIL ;
256-
257- l4 = (void * )(data + sizeof (__u32 ) +
258- sizeof (struct ethhdr ) + sizeof (struct ipv6hdr ) +
259- sizeof (struct icmp6hdr ) + sizeof (struct ipv6hdr ));
260- if (* ((__u16 * )l4 ) != bpf_htons (20 ))
261- return TEST_FAIL ;
262- if (* ((__u16 * )(l4 + sizeof (__u16 ))) != bpf_htons (1234 ))
263- return TEST_FAIL ;
264- return 0 ;
265- }
266-
267224PKTGEN (PROG_TYPE , "snat_v6_tcp_pmtu" )
268225int snat_v6_pmtu_pktgen (struct __ctx_buff * ctx )
269226{
0 commit comments