ipip.c (e4a924f5768c55002c02ceba9b9f86824c35f956) ipip.c (51456b2914a34d16b1255b7c55d5cbf6a681d306)
1/*
2 * Linux NET3: IP/IP protocol decoder.
3 *
4 * Authors:
5 * Sam Lantinga (slouken@cs.ucdavis.edu) 02/01/95
6 *
7 * Fixes:
8 * Alan Cox : Merged and made usable non modular (its so tiny its silly as

--- 130 unchanged lines hidden (view full) ---

139 struct ip_tunnel *t;
140 int err;
141 const int type = icmp_hdr(skb)->type;
142 const int code = icmp_hdr(skb)->code;
143
144 err = -ENOENT;
145 t = ip_tunnel_lookup(itn, skb->dev->ifindex, TUNNEL_NO_KEY,
146 iph->daddr, iph->saddr, 0);
1/*
2 * Linux NET3: IP/IP protocol decoder.
3 *
4 * Authors:
5 * Sam Lantinga (slouken@cs.ucdavis.edu) 02/01/95
6 *
7 * Fixes:
8 * Alan Cox : Merged and made usable non modular (its so tiny its silly as

--- 130 unchanged lines hidden (view full) ---

139 struct ip_tunnel *t;
140 int err;
141 const int type = icmp_hdr(skb)->type;
142 const int code = icmp_hdr(skb)->code;
143
144 err = -ENOENT;
145 t = ip_tunnel_lookup(itn, skb->dev->ifindex, TUNNEL_NO_KEY,
146 iph->daddr, iph->saddr, 0);
147 if (t == NULL)
147 if (!t)
148 goto out;
149
150 if (type == ICMP_DEST_UNREACH && code == ICMP_FRAG_NEEDED) {
151 ipv4_update_pmtu(skb, dev_net(skb->dev), info,
152 t->parms.link, 0, IPPROTO_IPIP, 0);
153 err = 0;
154 goto out;
155 }

--- 414 unchanged lines hidden ---
148 goto out;
149
150 if (type == ICMP_DEST_UNREACH && code == ICMP_FRAG_NEEDED) {
151 ipv4_update_pmtu(skb, dev_net(skb->dev), info,
152 t->parms.link, 0, IPPROTO_IPIP, 0);
153 err = 0;
154 goto out;
155 }

--- 414 unchanged lines hidden ---