diff options
Diffstat (limited to 'net/ipv4/ip_input.c')
-rw-r--r-- | net/ipv4/ip_input.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/ipv4/ip_input.c b/net/ipv4/ip_input.c index 2bdf802e28e2..3da817b89e9b 100644 --- a/net/ipv4/ip_input.c +++ b/net/ipv4/ip_input.c | |||
@@ -419,7 +419,7 @@ int ip_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type *pt, | |||
419 | iph = ip_hdr(skb); | 419 | iph = ip_hdr(skb); |
420 | 420 | ||
421 | if (unlikely(ip_fast_csum((u8 *)iph, iph->ihl))) | 421 | if (unlikely(ip_fast_csum((u8 *)iph, iph->ihl))) |
422 | goto inhdr_error; | 422 | goto csum_error; |
423 | 423 | ||
424 | len = ntohs(iph->tot_len); | 424 | len = ntohs(iph->tot_len); |
425 | if (skb->len < len) { | 425 | if (skb->len < len) { |
@@ -446,6 +446,8 @@ int ip_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type *pt, | |||
446 | return NF_HOOK(NFPROTO_IPV4, NF_INET_PRE_ROUTING, skb, dev, NULL, | 446 | return NF_HOOK(NFPROTO_IPV4, NF_INET_PRE_ROUTING, skb, dev, NULL, |
447 | ip_rcv_finish); | 447 | ip_rcv_finish); |
448 | 448 | ||
449 | csum_error: | ||
450 | IP_INC_STATS_BH(dev_net(dev), IPSTATS_MIB_CSUMERRORS); | ||
449 | inhdr_error: | 451 | inhdr_error: |
450 | IP_INC_STATS_BH(dev_net(dev), IPSTATS_MIB_INHDRERRORS); | 452 | IP_INC_STATS_BH(dev_net(dev), IPSTATS_MIB_INHDRERRORS); |
451 | drop: | 453 | drop: |