-------- Original Message -------- Subject: IP address in the kernel ? Date: Fri, 13 Aug 2004 17:17:54 +0530 From: amith <amith@xxxxxxxxxxxxxxx> To: KERNEL <kernelnewbies@xxxxxxxxxxxx>
hi all,
where in the kernel code is the checked , to verify that the incoming packet is for the recived host ?
i would appreciate if someone could point me to that peice of code in the kernel. i checked the kernel sources /net directory but dont have an idea where to go and look for it.
# strace ifconfig eth0 192.168.3.25
also didnt take me anywhere.
i see some ioctl's being called finally.....but they dont mean anything since they look the same no matter whichever ip i change to .
it seems to me that, the current ipaddress stored in some data struct (variable) in the kernel , is it so ?
please let me know.
cheers, Amith
PS: is it in :
FROM inetdevice.h ???
struct in_ifaddr { struct in_ifaddr *ifa_next; struct in_device *ifa_dev; u32 ifa_local; u32 ifa_address; u32 ifa_mask; u32 ifa_broadcast; u32 ifa_anycast; unsigned char ifa_scope; unsigned char ifa_flags; unsigned char ifa_prefixlen; char ifa_label[IFNAMSIZ]; };
-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/