Lines Matching defs:skb2
1336 struct sk_buff *skb2 = skb;
1368 skb2 = skb_clone(skb, GFP_ATOMIC);
1369 if (!skb2)
1372 err = pskb_trim_rcsum(skb2, len);
1377 len -= ip_hdrlen(skb2);
1378 offset = skb_network_offset(skb2) + ip_hdrlen(skb2);
1379 __skb_pull(skb2, offset);
1380 skb_reset_transport_header(skb2);
1383 if (!pskb_may_pull(skb2, sizeof(*ih)))
1386 switch (skb2->ip_summed) {
1388 if (!csum_fold(skb2->csum))
1392 skb2->csum = 0;
1393 if (skb_checksum_complete(skb2))
1400 ih = igmp_hdr(skb2);
1405 BR_INPUT_SKB_CB(skb2)->mrouters_only = 1;
1409 err = br_ip4_multicast_igmp3_report(br, port, skb2);
1412 err = br_ip4_multicast_query(br, port, skb2);
1420 __skb_push(skb2, offset);
1422 if (skb2 != skb)
1423 kfree_skb(skb2);
1432 struct sk_buff *skb2 = skb;
1467 skb2 = skb_clone(skb, GFP_ATOMIC);
1468 if (!skb2)
1471 len -= offset - skb_network_offset(skb2);
1473 __skb_pull(skb2, offset);
1474 skb_reset_transport_header(skb2);
1477 if (!pskb_may_pull(skb2, sizeof(*icmp6h)))
1480 icmp6h = icmp6_hdr(skb2);
1494 if (skb2->len > len) {
1495 err = pskb_trim_rcsum(skb2, len);
1500 switch (skb2->ip_summed) {
1502 if (!csum_fold(skb2->csum))
1506 skb2->csum = 0;
1507 if (skb_checksum_complete(skb2))
1519 BR_INPUT_SKB_CB(skb2)->mrouters_only = 1;
1524 err = br_ip6_multicast_mld2_report(br, port, skb2);
1527 err = br_ip6_multicast_query(br, port, skb2);
1537 __skb_push(skb2, offset);
1538 if (skb2 != skb)
1539 kfree_skb(skb2);