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/udp.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/udp.c')
-rw-r--r-- | net/ipv4/udp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c index 926404c5e58c..71b0b60ba538 100644 --- a/net/ipv4/udp.c +++ b/net/ipv4/udp.c | |||
@@ -330,8 +330,8 @@ void __udp4_lib_err(struct sk_buff *skb, u32 info, struct hlist_head udptable[]) | |||
330 | struct inet_sock *inet; | 330 | struct inet_sock *inet; |
331 | struct iphdr *iph = (struct iphdr*)skb->data; | 331 | struct iphdr *iph = (struct iphdr*)skb->data; |
332 | struct udphdr *uh = (struct udphdr*)(skb->data+(iph->ihl<<2)); | 332 | struct udphdr *uh = (struct udphdr*)(skb->data+(iph->ihl<<2)); |
333 | int type = skb->h.icmph->type; | 333 | const int type = icmp_hdr(skb)->type; |
334 | int code = skb->h.icmph->code; | 334 | const int code = icmp_hdr(skb)->code; |
335 | struct sock *sk; | 335 | struct sock *sk; |
336 | int harderr; | 336 | int harderr; |
337 | int err; | 337 | int err; |