[PATCH] /proc/net/igmp - also show V3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

Attaching a trivial patch against 2.4.26 to make /proc/net/igmp display
Querier V3 instead of V2 when V3 is actually in use.

regards
	/
		Leif
diff -ur linux-2.4.26-vanilla/net/ipv4/igmp.c linux-2.4.26/net/ipv4/igmp.c
--- linux-2.4.26-vanilla/net/ipv4/igmp.c	2004-04-15 21:27:00.000000000 +0200
+++ linux-2.4.26/net/ipv4/igmp.c	2004-04-15 21:46:41.000000000 +0200
@@ -2126,7 +2126,12 @@
 			continue;
 
 #ifdef CONFIG_IP_MULTICAST
-		querier = IGMP_V1_SEEN(in_dev) ? "V1" : "V2";
+		if(IGMP_V1_SEEN(in_dev))
+		    querier = "V1";
+		else if(IGMP_V2_SEEN(in_dev))
+		    querier = "V2";
+		else
+		    querier = "V3";
 #endif
 
 		len+=sprintf(buffer+len,"%d\t%-10s: %5d %7s\n",

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux