Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 20 Aug 2015 03:03:09 +0200
From: Sebastian Gottschall <s.gottschall@...wrt.com>
To: musl@...ts.openwall.com
Subject: curious file access problem

Hello Guys

can someone explain why a file read operation on /proc/net/route will 
return everything but the default gateway?
this happens only with musl and does for sure affect the command "route" 
in busybox

here a short example of this curiosity
strings does not print the default gateway.
cat does print it with default gateway

root@...WRT:~# strings /proc/net/route
Iface   Destination     Gateway         Flags   RefCnt  Use Metric  
Mask            MTU     Window  IRTT

ath1    00C1580A        00000000        0001    0       0 0       
00FFFFFF        0       0       0

lo      0000007F        00000000        0001    0       0 0       
000000FF        0       0       0

br0     0000FEA9        00000000        0001    0       0 0       
0000FFFF        0       0       0

br0     0001A8C0        00000000        0001    0       0 0       
00FFFFFF        0       0       0

root@...WRT:~# cat /proc/net/route
Iface   Destination     Gateway         Flags   RefCnt  Use Metric  
Mask            MTU     Window  IRTT

ath1    00000000        01C1580A        0003    0       0 0       
00000000        0       0       0

ath1    00C1580A        00000000        0001    0       0 0       
00FFFFFF        0       0       0

lo      0000007F        00000000        0001    0       0 0       
000000FF        0       0       0

br0     0000FEA9        00000000        0001    0       0 0       
0000FFFF        0       0       0

br0     0001A8C0        00000000        0001    0       0 0       
00FFFFFF        0       0       0


Sebastian

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.