diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2007-03-13 13:43:18 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 01:25:23 -0400 |
commit | 88c7664f13bd1a36acb8566b93892a4c58759ac6 (patch) | |
tree | 18ead610bf54ef87f3832c61d64a4bad30d4f78e /net/ipv4/ipip.c | |
parent | 4bedb45203eab92a87b4c863fe2d0cded633427f (diff) |
[SK_BUFF]: Introduce icmp_hdr(), remove skb->h.icmph
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/ipip.c')
-rw-r--r-- | net/ipv4/ipip.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/net/ipv4/ipip.c b/net/ipv4/ipip.c index b7f6ff4705b0..b32b50114806 100644 --- a/net/ipv4/ipip.c +++ b/net/ipv4/ipip.c | |||
@@ -280,8 +280,8 @@ static int ipip_err(struct sk_buff *skb, u32 info) | |||
280 | ICMP in the real Internet is absolutely infeasible. | 280 | ICMP in the real Internet is absolutely infeasible. |
281 | */ | 281 | */ |
282 | struct iphdr *iph = (struct iphdr*)skb->data; | 282 | struct iphdr *iph = (struct iphdr*)skb->data; |
283 | int type = skb->h.icmph->type; | 283 | const int type = icmp_hdr(skb)->type; |
284 | int code = skb->h.icmph->code; | 284 | const int code = icmp_hdr(skb)->code; |
285 | struct ip_tunnel *t; | 285 | struct ip_tunnel *t; |
286 | int err; | 286 | int err; |
287 | 287 | ||
@@ -336,8 +336,8 @@ out: | |||
336 | struct iphdr *iph = (struct iphdr*)dp; | 336 | struct iphdr *iph = (struct iphdr*)dp; |
337 | int hlen = iph->ihl<<2; | 337 | int hlen = iph->ihl<<2; |
338 | struct iphdr *eiph; | 338 | struct iphdr *eiph; |
339 | int type = skb->h.icmph->type; | 339 | const int type = icmp_hdr(skb)->type; |
340 | int code = skb->h.icmph->code; | 340 | const int code = icmp_hdr(skb)->code; |
341 | int rel_type = 0; | 341 | int rel_type = 0; |
342 | int rel_code = 0; | 342 | int rel_code = 0; |
343 | __be32 rel_info = 0; | 343 | __be32 rel_info = 0; |
@@ -354,7 +354,7 @@ out: | |||
354 | default: | 354 | default: |
355 | return 0; | 355 | return 0; |
356 | case ICMP_PARAMETERPROB: | 356 | case ICMP_PARAMETERPROB: |
357 | n = ntohl(skb->h.icmph->un.gateway) >> 24; | 357 | n = ntohl(icmp_hdr(skb)->un.gateway) >> 24; |
358 | if (n < hlen) | 358 | if (n < hlen) |
359 | return 0; | 359 | return 0; |
360 | 360 | ||
@@ -373,7 +373,7 @@ out: | |||
373 | return 0; | 373 | return 0; |
374 | case ICMP_FRAG_NEEDED: | 374 | case ICMP_FRAG_NEEDED: |
375 | /* And it is the only really necessary thing :-) */ | 375 | /* And it is the only really necessary thing :-) */ |
376 | n = ntohs(skb->h.icmph->un.frag.mtu); | 376 | n = ntohs(icmp_hdr(skb)->un.frag.mtu); |
377 | if (n < hlen+68) | 377 | if (n < hlen+68) |
378 | return 0; | 378 | return 0; |
379 | n -= hlen; | 379 | n -= hlen; |