ipv4 /proc/net/route bug in 2.4 and 2.5 kernels

ipv4 /proc/net/route bug in 2.4 and 2.5 kernels

Post by Bruce Cra » Sun, 20 Oct 2002 00:00:20



I've discovered a bug in the 2.4 and 2.5 kernels relating to the
information in /proc.   The values reported in /proc/net/route are wrong -
the main error is the MTU field which should be MSS, and should be the
MTU-40.  The route command has the header fixed, but still gets the value
from /proc, and so reports the wrong value of
40.

I'm currently using 2.5.43, and have tracked it down to line 1031 in
net/ipv4/fib_semantics.c in function fib_node_seq_show.  It appears that
fi->fib_advmss is 0, because when I change the '+40' to '+45' that is the
value which appears in the MTU field in /proc/net/route, and in the MSS
field when running '/sbin/route -e'.

Also, on line 191 of net/ipv4/ip_proc.c (in function fib_seq_show), I
think the 'MTU' should be 'MSS' according to the comments in route.c, and
to make the output of the route command and the proc entry consistent.

--
Bruce Cran

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. ipv4: move proc stuff from net/ipv4/af_inet.c to net/ipv4/proc.c


   Date: Tue, 29 Oct 2002 11:42:07 -0200 (BRDT)

        Please consider pulling from:

   kernel.bkbits.net:/home/acme/net-2.5

Pulled, thanks.

I just did a push to Linus, so this will go show up in the next round.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. 2.4.10 system hangup

3. [ipv4] move proc init to newly created net/ipv4/ip_proc.c

4. Modems and RPI and Linux, Oh My!

5. net/ipv4/route.c doesn't compile without /proc support

6. ftp problems (double signatures)

7. ipv4/route: convert /proc/net/rt_cache to seq_file

8. Real-Time Scheduler BUG??

9. net.ipv4.tcp differences from 2.2 to 2.4.x kernel

10. /proc/net/route, /proc/net/rt_cach, sysctl ??