Identifying neighbors within the LAN
Hettiarachchige Hasitha Shan
hh_shan at live.com
Sat May 3 14:01:19 EDT 2014
Dear Sirs/ Ma'ams,
I am an undergraduate student following the B Eng (Hons) Software
Engineering degree program at University of Westminster, UK. As for my
final year research project I am implementing a packet security
enhancement module.
In the concept, it is required to obtain the list of neighbors within the LAN. I did some research online and I found out that I can obtain IPv4/ IPv6 neighbors by typing
in "ip -4 neigh show" or "ip -6 neigh show" in the terminal where this feature is implemented by the module neighbour.c.
My query is , If I am to obtain these information programatically through my kernel module, which methods should I call.
As
in, i tried doing a #include <linux/neighbour.h> and tried to
call `neightbl_dump_info' but that did not work. I would be really
grateful if you experts could advice me on how to implement the function to
obtain the list of IPv4/ IPv6 neighbours programatically?
Thank you,
Best Regards,
H. Hasitha Shan
P.S. I apologize in advance if this question has an obvious answer, but as I am a novice in this area, my research lead me to dead ends for weeks and your help will be very much appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140503/dec807ab/attachment-0001.html
More information about the Kernelnewbies
mailing list