<div dir="ltr">Hello,<div><br></div><div>I started implementing the raw_sockets and I use libnet for sending the packets.</div><div>When I integrated the implementation with cdp I faced a problem at compile time.</div><div>
<br></div><div><div>In file included from /usr/include/libnet.h:83,</div><div>                 from ../switch/raw_socket.h:23,</div><div>                 from cdpd.h:55,</div><div>                 from cdpd.c:20:</div><div>
/usr/include/net/if.h:45: error: expected identifier before numeric constant</div><div>/usr/include/net/if.h:113: error: redefinition of ‘struct ifmap’</div><div>/usr/include/net/if.h:128: error: redefinition of ‘struct ifreq’</div>
<div>/usr/include/net/if.h:178: error: redefinition of ‘struct ifconf’</div><div><br></div><div style>I didn&#39;t include the same headers on both files and from what I read from the internet the problem appears because the  version of libnet that I installed(which is for centos 6) is incompatible with the one used of glibc.</div>
<div style><br></div><div style>I tried with this packets:</div><div style>- libnet-1.1.2.1-2.2.el6.rf.i686.rpm (this was suggested for centos 6 and we use centos 6.3)<br></div><div style>- libnet-1.1.5-1.el6.i686.rpm</div>
<div style><br></div><div style><br></div><div style>Do you have any suggestions? </div><div style><br></div><div><br></div>-- <br><div>Martinas Mihaela-Alexandra</div>
</div></div>