<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Dear Sirs/ Ma'ams,<br><br>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.<br><br>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 "<font style="" face="Courier New">ip -4 neigh show</font>" or "<font style="" face="Courier New">ip -6 neigh show</font>" in the terminal where this feature is implemented by the module<font style="" face="Courier New"> neighbour.</font>c.<br><br>My query is , If I am to obtain these information programatically through my kernel module, which methods should I call.<br><br>As
in, i tried doing a <font style="" face="Courier New">#include <linux/neighbour.h></font> and tried to
call `<font style="" face="Courier New">neightbl_dump_info</font>' 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?<br><br>Thank you,<br><br>Best Regards,<br>H. Hasitha Shan<br><br>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.<br>                                            </div></body>
</html>