Re: route use?

Bernd Eckenfels (
13 Jun 1996 23:07:17 GMT

Jon Lewis ( wrote:
: I've recently noticed that the use column in /proc/net/route doesn't seem
: to update as often as it did in 1.2.x. i.e.
: Kernel routing table
: Destination Gateway Genmask Flags MSS Window Use Iface
: localnet * U 1500 0 38 eth0
: loopback * U 3584 0 2 lo
: default * UG 1500 0 1 eth0

This is due to the new route cache in the socket code. The usage count only
shows cache misses (i.e. connects). I guess this an be changed in the kernel
to update the field as one is used in 1.2.x, but this will of course slow
down the IP-layer a few ticks.. hmm.. You can look into rt_cache, there are
some usage numbers, too.


  (OO)      -- --
 ( .. )  ecki@lina.{,}
  o--o     *plush*  2048/93600EFD  eckes@irc  +4972573817  *plush*
(O____O)       If privacy is outlawed only Outlaws have privacy