diff options
Diffstat (limited to 'net/ipv4/raw.c')
-rw-r--r-- | net/ipv4/raw.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv4/raw.c b/net/ipv4/raw.c index 216e01b0f44a..07070c7067f3 100644 --- a/net/ipv4/raw.c +++ b/net/ipv4/raw.c | |||
@@ -314,6 +314,9 @@ static int raw_send_hdrinc(struct sock *sk, void *from, size_t length, | |||
314 | 314 | ||
315 | iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl); | 315 | iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl); |
316 | } | 316 | } |
317 | if (iph->protocol == IPPROTO_ICMP) | ||
318 | icmp_out_count(((struct icmphdr *) | ||
319 | skb_transport_header(skb))->type); | ||
317 | 320 | ||
318 | err = NF_HOOK(PF_INET, NF_IP_LOCAL_OUT, skb, NULL, rt->u.dst.dev, | 321 | err = NF_HOOK(PF_INET, NF_IP_LOCAL_OUT, skb, NULL, rt->u.dst.dev, |
319 | dst_output); | 322 | dst_output); |