[IPV4] igmp: Fixup struct ip_mc_list::multiaddr type
authorAlexey Dobriyan <adobriyan@gmail.com>
Tue, 6 Jun 2006 04:04:39 +0000 (21:04 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sun, 18 Jun 2006 04:29:37 +0000 (21:29 -0700)
All users except two expect 32-bit big-endian value. One is of

->multiaddr = ->multiaddr

variety. And last one is "%08lX".

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/igmp.h
net/ipv4/igmp.c

index 28f4f3b36950593a5eec787ce7193cb207bf9be8..899c3d4776f3dffc690274bd3dfb44224c6608ab 100644 (file)
@@ -169,7 +169,7 @@ struct ip_sf_list
 struct ip_mc_list
 {
        struct in_device        *interface;
-       unsigned long           multiaddr;
+       __be32                  multiaddr;
        struct ip_sf_list       *sources;
        struct ip_sf_list       *tomb;
        unsigned int            sfmode;
index d512239a14731a0690e184f6340221f06c4a0b18..ab680c851aa204b5e2f1b2ee18dc023b7630764f 100644 (file)
@@ -2361,7 +2361,7 @@ static int igmp_mc_seq_show(struct seq_file *seq, void *v)
                }
 
                seq_printf(seq,
-                          "\t\t\t\t%08lX %5d %d:%08lX\t\t%d\n",
+                          "\t\t\t\t%08X %5d %d:%08lX\t\t%d\n",
                           im->multiaddr, im->users,
                           im->tm_running, im->tm_running ?
                           jiffies_to_clock_t(im->timer.expires-jiffies) : 0,