Google
  Web www.spinics.net

/proc/net/igmp group address encoding

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


Hi,

I've spotted some irritating IGMPv3/v2 compat problems on RHEL4, and I'm working on trying to see if these are due to bugs already fixed in latest kernels. In the process, I started wondering about /proc/net/igmp format (on 2.6.26.5-39.fc9.i686):

[psavola@lapps ~]$ more /proc/net/igmp
Idx	Device    : Count Querier	Group    Users Timer	Reporter
1	lo        :     0      V3
				010000E0     1 0:00000000		0
2	eth0      :     2      V3
				010000E0     1 0:00000000		0
3	wmaster0  :     3      V3
				010000E0     1 0:00000000		0
4	wlan0     :     3      V3
				010000E0     1 0:00000000		0

(The header and the fields seem to be a little off in the output..)

[psavola@lapps ~]$ netstat -gn | grep eth0
eth0            1      224.0.0.1
eth0            1      ff02::1

It appears "010000E0" is 224.0.0.1 encoded in in hex but right-to-left. Other groups are similarly encoded. /proc/net/igmp6 is encoded in a human-friendly format.

Is this intentional? Should this be changed, e.g. to flow left-to-right and use the dotted quad IP address format?

--
Pekka Savola                 "You each name yourselves king, yet the
Netcore Oy                    kingdom bleeds."
Systems. Networks. Security. -- George R.R. Martin: A Clash of Kings
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Kernel List]     [Site Home]     [Ethernet Bridging]     [Git]     [IETF Annouce]     [Linux Assembly]     [VLAN]     [Networking]     [Security]     [Bugtraq]     [Rubini]     [Photo]     [Singles Social Netowrking]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Virtualization]     [Linux Security]     [Linux IDE]     [Linux RAID]     [Linux SCSI]     [Linux Wireless]     [DDR & Rambus]     [Free Dating]     [Linux Resources]     [Wireless Reading Device]

Add to Google Powered by Linux