From: Sebastian Gottschall <s.gottschall@dd-wrt.com>
To: musl@lists.openwall.com
Subject: curious file access problem
Date: Thu, 20 Aug 2015 03:03:09 +0200 [thread overview]
Message-ID: <55D5274D.2020903@dd-wrt.com> (raw)
In-Reply-To: <5769061.FLTLqujSyv@debian64>
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@DD-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@DD-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
next prev parent reply other threads:[~2015-08-20 1:03 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-20 0:44 SuperH conflict of arch/sh/__set_thread_area vs thread/__set_thread_area Christian Lamparter
2015-08-20 1:03 ` Sebastian Gottschall [this message]
2015-08-20 2:56 ` curious file access problem Rich Felker
2015-08-20 6:48 ` Bastian Bittorf
2015-08-20 10:55 ` Sebastian Gottschall
2015-08-20 13:25 ` Bastian Bittorf
2015-08-20 13:48 ` Rich Felker
2015-08-20 14:26 ` Bastian Bittorf
2015-08-20 14:32 ` Rich Felker
2015-08-20 14:51 ` Sebastian Gottschall
2015-08-20 15:00 ` Rich Felker
2015-08-20 18:30 ` Timo Teras
2015-08-20 21:03 ` Sebastian Gottschall
2015-08-20 21:46 ` Sebastian Gottschall
2015-08-20 14:14 ` Bastian Bittorf
2015-08-20 1:34 ` SuperH conflict of arch/sh/__set_thread_area vs thread/__set_thread_area Bobby Bingham
2015-08-20 3:04 ` Rich Felker
2015-08-20 10:21 ` Christian Lamparter
2015-08-21 14:07 ` Christian Lamparter
2015-08-21 14:23 ` Rich Felker
2015-08-25 7:48 ` Felix Fietkau
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55D5274D.2020903@dd-wrt.com \
--to=s.gottschall@dd-wrt.com \
--cc=musl@lists.openwall.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).