Hi, Default gateway IP address can be extracted from /etc/network/interfaces for Debian and /etc/sysconfig/network/ifcfg-eth0 for RedHat systems. I don't think that for this information, ioctl flags are used. Many things in Linux/Unix are done using scripts and text files (input/output of those scripts) as this gives us the freedom to make some changes while the system is running without any problems. For skbuffs, read any Linux Kernel book (Oreilly, for example). Regards, Dharmender Rai -----Original Message----- From: paridhi bansal [mailto:paridhibansal@yahoo.com] Sent: Friday, November 22, 2002 10:01 AM To: kernelnewbies@nl.linux.org; dharmenderr@cybage.com Subject: Gateway..skbuff Hi How can i get the default gateway of a particular interface through my C code??Is there some ioctl flag for that or there is some other wya to do that?? Secondly,Where can i find good documentation on skbuffs??? paridhi __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/