netdev
[Top] [All Lists]

[patch 2.5.44+] IpInUnknownProtos support

To: davem@xxxxxxxxxx
Subject: [patch 2.5.44+] IpInUnknownProtos support
From: Nivedita Singhvi <niv@xxxxxxxxxx>
Date: Mon, 28 Oct 2002 17:18:04 -0800 (PST)
Cc: netdev@xxxxxxxxxxx
Sender: netdev-bounce@xxxxxxxxxxx
This adds the update for the SNMP MIB counter
IpInUnknownProtos (to catch all those unrecognized
sctp packets ;)) for ipv4. 

thanks,
Nivedita

diff -urN linux-2.5.44s1/net/ipv4/ip_input.c linux-2.5.44s2/net/ipv4/ip_input.c
--- linux-2.5.44s1/net/ipv4/ip_input.c  Mon Oct 28 17:05:40 2002
+++ linux-2.5.44s2/net/ipv4/ip_input.c  Mon Oct 28 17:00:58 2002
@@ -240,6 +240,7 @@
                        IP_INC_STATS_BH(IpInDelivers);
                } else {
                        if (!raw_sk) {
+                               IP_INC_STATS_BH(IpInUnknownProtos);
                                icmp_send(skb, ICMP_DEST_UNREACH,
                                          ICMP_PROT_UNREACH, 0);
                        } else


<Prev in Thread] Current Thread [Next in Thread>