I am trying to compile my own Linux for embededd devices, using the OpenWRT distribution. I am trying to get some Multicast information using the /proc/net/netstat
interface but it is not found (normally this is available on my desktop).
If I am right this should be enabled in the kernel_menuconfig
but I am not able to find any option related to this.
UPDATE: i was trying with kernel 3.10.49
and 4.4.14
. In both cases proc.c
is compiled (proc.o
is available in my build_dir
, /proc
is mounted, but /proc/net/netstat
does not exists.
/proc
? Is it mounted? In 4.9.6/proc/net/netstat
is implemented innet/ipv4/proc.c
. Would there be some reason that's not getting compiled in your case? – Andy Dalton Feb 10 '17 at 19:31/proc
is mounted, and many files also exists (i.e./proc/net/udp
) I have checked mybuild_dir
andnet/ipv4/proc.o
is compiled. And you are right, there are entries in theproc.c
for creating the/proc/net/netstat
entry, but havent find any macro which can exclude this during compiling the kernel. – molnarg Feb 11 '17 at 13:27