diff options
Diffstat (limited to 'net/ipv4/raw.c')
-rw-r--r-- | net/ipv4/raw.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv4/raw.c b/net/ipv4/raw.c index ac57afa7c316..bf101dc1a972 100644 --- a/net/ipv4/raw.c +++ b/net/ipv4/raw.c | |||
@@ -132,7 +132,7 @@ static __inline__ int icmp_filter(struct sock *sk, struct sk_buff *skb) | |||
132 | if (!pskb_may_pull(skb, sizeof(struct icmphdr))) | 132 | if (!pskb_may_pull(skb, sizeof(struct icmphdr))) |
133 | return 1; | 133 | return 1; |
134 | 134 | ||
135 | type = skb->h.icmph->type; | 135 | type = icmp_hdr(skb)->type; |
136 | if (type < 32) { | 136 | if (type < 32) { |
137 | __u32 data = raw_sk(sk)->filter.data; | 137 | __u32 data = raw_sk(sk)->filter.data; |
138 | 138 | ||
@@ -184,8 +184,8 @@ out: | |||
184 | void raw_err (struct sock *sk, struct sk_buff *skb, u32 info) | 184 | void raw_err (struct sock *sk, struct sk_buff *skb, u32 info) |
185 | { | 185 | { |
186 | struct inet_sock *inet = inet_sk(sk); | 186 | struct inet_sock *inet = inet_sk(sk); |
187 | int type = skb->h.icmph->type; | 187 | const int type = icmp_hdr(skb)->type; |
188 | int code = skb->h.icmph->code; | 188 | const int code = icmp_hdr(skb)->code; |
189 | int err = 0; | 189 | int err = 0; |
190 | int harderr = 0; | 190 | int harderr = 0; |
191 | 191 | ||