[Ilugc] fetching ip address from kernel space
Muneer
muneerch at gmail.com
Thu Jan 26 18:10:34 IST 2006
On 1/26/06, Binand Sethumadhavan <binand at gmail.com> wrote:
> On 26/01/06, Muneer <muneerch at gmail.com> wrote:
> > printk("\n local = %x, Address =%x" , (IpHdr->ifa_list)->ifa_local,
> > (IpHdr->ifa_list)->ifa_address);
> >
> > On compilation, last 2 line throws an error,
> > "dereferencing pointer to incomplete type"
>
> That typically means you haven't included the header file in which the
> struct is defined.
Oops!!! u fixed it Binand. Succefully compiled and got ouput as my
requirement!! I was looking at that boring error since after noon.
Thanks a lot Binand
I guess that is the best way to get the IP of the interface. But that
structure (ifa_list)being a link list, i guess all the ip addresses
including the aliases are stored in that. Let me try to find out how
to give a kick to aliased ip addresses (if there is)!!
Regards
Muneer
--
Imagination is more important than knowledge...
More information about the ilugc
mailing list