logo       

[patch 2.5.44+] IpInUnknownProtos support: msg#00548

Subject: [patch 2.5.44+] IpInUnknownProtos support
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>