Identifying neighbors within the LAN

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux