Where is the source code to process "route" or "ifconfig" command?

Where is the source code to process "route" or "ifconfig" command?

Post by tlin » Fri, 16 Feb 2001 05:29:47



I am looking for the kernel codes to process "route" or "ifconfig" command.
But I can't find it in net/ipv4/route.c  (kernel 2.2.16).
Could anyone here give me some advice? Thanks!

tom

 
 
 

Where is the source code to process "route" or "ifconfig" command?

Post by George Houpi » Fri, 16 Feb 2001 04:08:31


Tom,

That package is not too obvious to find.  But a good site is listed in
the URL below.  The latest should be net-tools-1.58.tar.bz2

http://www.tazenda.demon.co.uk/phil/net-tools/

Enjoy,

George


> I am looking for the kernel codes to process "route" or "ifconfig" command.
> But I can't find it in net/ipv4/route.c  (kernel 2.2.16).
> Could anyone here give me some advice? Thanks!

> tom


 
 
 

Where is the source code to process "route" or "ifconfig" command?

Post by Kasper Dupon » Sat, 17 Feb 2001 20:01:27



> I am looking for the kernel codes to process "route" or "ifconfig" command.
> But I can't find it in net/ipv4/route.c  (kernel 2.2.16).
> Could anyone here give me some advice? Thanks!

> tom

Look for the following ioctl's:
SIOCSIFADDR, SIOCGIFFLAGS, SIOCSIFFLAGS

--
Kasper Dupont