New: In /proc/net/route the default gateway isn't appear

New: In /proc/net/route the default gateway isn't appear

Post by Martin J. Blig » Wed, 02 Apr 2003 17:40:11



http://bugme.osdl.org/show_bug.cgi?id=528

           Summary: In /proc/net/route the default gateway isn't appear
    Kernel Version: 2.5.66
            Status: NEW
          Severity: low


Distribution:
   Debian woody

Hardware Environment:
   IBM Thinpad T21 Pentium III (Coppermine)

Software Environment:
   Kernel 2.5.66 compiled with gcc-3.2
   ip utility, iproute2-ss010824

Problem Description:

In /proc/net/route the default gateway isn't appear:

$ netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
xx.x.xx.x       0.0.0.0         xxx.xxx.xxx.0   U         0 0          0 eth0

$ cat /proc/net/route
Iface   Destination     Gateway         Flags   RefCnt  Use     Metric  Mask  
        MTU     Window  IRTT                                                      
eth0    xxxxxxxx        00000000        0001    0       0       0       xxxxxxxx
       0       0       0                            

But:

$ ip route show
xx.x.xx.x/xx dev eth0  proto kernel  scope link  src xx.x.xx.xxx
default via xx.x.xx.x dev eth0

-
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. fix /proc/net/route missing the default route

hi

this one fixes /proc/net/route missing the default route for me.
[see http://bugme.osdl.org/show_bug.cgi?id=528 ]
against 2.5.66-bk. please apply if it's correct.

rgds
-daniel

===== net/ipv4/fib_hash.c 1.10 vs edited =====
--- 1.10/net/ipv4/fib_hash.c    Sat Feb  1 02:04:16 2003

                                goto out;
                }

-               for (;;) {
-                       iter->zone = iter->zone->fz_next;
+               iter->zone = iter->zone->fz_next;

-                       if (!iter->zone)
-                               goto out;
-                       if (iter->zone->fz_next)
-                               break;
-               }
+               if (!iter->zone)
+                       goto out;

                iter->hash = iter->zone->fz_hash;
                iter->bucket = 0;

-
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. Samba

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

4. vim position jumps on save

5. How automatic route trafic from default gateway to second gateway then connect to default will broken

6. How do I set Solaris up to use a gateway???

7. HELP: Route can't file /proc/net/route

8. shutdown under program control

9. defunct routes (was Re: multiple default routes appear in solaris 2.5.1)

10. Default gateway's default gateway.

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

12. /proc/net/tcp and /proc/net/udp

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