Lines Matching refs:skb2
565 struct sk_buff *skb2; in ip4ip6_err() local
600 skb2 = skb_clone(skb, GFP_ATOMIC); in ip4ip6_err()
601 if (!skb2) in ip4ip6_err()
604 skb_dst_drop(skb2); in ip4ip6_err()
606 skb_pull(skb2, offset); in ip4ip6_err()
607 skb_reset_network_header(skb2); in ip4ip6_err()
608 eiph = ip_hdr(skb2); in ip4ip6_err()
616 skb2->dev = rt->dst.dev; in ip4ip6_err()
629 skb_dst_set(skb2, &rt->dst); in ip4ip6_err()
631 if (ip_route_input(skb2, eiph->daddr, eiph->saddr, eiph->tos, in ip4ip6_err()
632 skb2->dev) || in ip4ip6_err()
633 skb_dst(skb2)->dev->type != ARPHRD_TUNNEL6) in ip4ip6_err()
639 if (rel_info > dst_mtu(skb_dst(skb2))) in ip4ip6_err()
642 skb_dst_update_pmtu_no_confirm(skb2, rel_info); in ip4ip6_err()
645 icmp_send(skb2, rel_type, rel_code, htonl(rel_info)); in ip4ip6_err()
648 kfree_skb(skb2); in ip4ip6_err()
668 struct sk_buff *skb2 = skb_clone(skb, GFP_ATOMIC); in ip6ip6_err() local
670 if (!skb2) in ip6ip6_err()
673 skb_dst_drop(skb2); in ip6ip6_err()
674 skb_pull(skb2, offset); in ip6ip6_err()
675 skb_reset_network_header(skb2); in ip6ip6_err()
678 rt = rt6_lookup(dev_net(skb->dev), &ipv6_hdr(skb2)->saddr, in ip6ip6_err()
679 NULL, 0, skb2, 0); in ip6ip6_err()
682 skb2->dev = rt->dst.dev; in ip6ip6_err()
684 icmpv6_send(skb2, rel_type, rel_code, rel_info); in ip6ip6_err()
688 kfree_skb(skb2); in ip6ip6_err()