netdev
[Top] [All Lists]

[PATCH 3/3] clean up /proc/net/{anycast6,igmp6} (Re: /proc/net/* read dr

To: davem@xxxxxxxxxx, netdev@xxxxxxxxxxx
Subject: [PATCH 3/3] clean up /proc/net/{anycast6,igmp6} (Re: /proc/net/* read drops data)
From: YOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@xxxxxxxxxxxxxx>
Date: Sat, 06 Sep 2003 16:10:53 +0900 (JST)
Cc: yoshfuji@xxxxxxxxxxxxxx
In-reply-to: <20030906.160458.39800982.yoshfuji@xxxxxxxxxxxxxx>
Organization: USAGI Project
References: <20030904004638.1d4b001d.davem@xxxxxxxxxx> <Pine.GSO.4.33.0309041223430.13584-100000@xxxxxxxxxxxxxxxxxxxxxxx> <20030906.160458.39800982.yoshfuji@xxxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
[3/3] clean up /proc/net/{anycast6,igmp6}

Index: linux-2.6/net/ipv6/anycast.c
===================================================================
RCS file: /home/cvs/linux-2.5/net/ipv6/anycast.c,v
retrieving revision 1.7
diff -u -r1.7 anycast.c
--- linux-2.6/net/ipv6/anycast.c        25 Jul 2003 17:11:54 -0000      1.7
+++ linux-2.6/net/ipv6/anycast.c        6 Sep 2003 04:23:07 -0000
@@ -505,7 +505,7 @@
 static void *ac6_seq_start(struct seq_file *seq, loff_t *pos)
 {
        read_lock(&dev_base_lock);
-       return *pos ? ac6_get_idx(seq, *pos) : ac6_get_first(seq);
+       return ac6_get_idx(seq, *pos);
 }
 
 static void *ac6_seq_next(struct seq_file *seq, void *v, loff_t *pos)
Index: linux-2.6/net/ipv6/mcast.c
===================================================================
RCS file: /home/cvs/linux-2.5/net/ipv6/mcast.c,v
retrieving revision 1.31
diff -u -r1.31 mcast.c
--- linux-2.6/net/ipv6/mcast.c  1 Sep 2003 05:52:50 -0000       1.31
+++ linux-2.6/net/ipv6/mcast.c  6 Sep 2003 04:23:07 -0000
@@ -2119,7 +2119,7 @@
 static void *igmp6_mc_seq_start(struct seq_file *seq, loff_t *pos)
 {
        read_lock(&dev_base_lock);
-       return *pos ? igmp6_mc_get_idx(seq, *pos) : igmp6_mc_get_first(seq);
+       return igmp6_mc_get_idx(seq, *pos);
 }
 
 static void *igmp6_mc_seq_next(struct seq_file *seq, void *v, loff_t *pos)

-- 
Hideaki YOSHIFUJI @ USAGI Project <yoshfuji@xxxxxxxxxxxxxx>
GPG FP: 9022 65EB 1ECF 3AD1 0BDF  80D8 4807 F894 E062 0EEA

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