using libnet and libipq in a c program

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

 






Hi,

   I tried compiling a program that uses both libnet and libipq, for
libnet
 I have to include libnet.h and for libipq, libipq.h, but libipq.h
includes
 ip_queue.h, which inturn includes linux/if.h. Also, libnet.h includes
 net/if.h, now this creates problems during compilation(redefinition of
some structures), I had to comment
 out include<net/if.h> from libnet to compile the program, Has anybody
faced this problem, can you suggest me a better way to overcome this that
commenting out a line in libnet.h ??

thanks
Amit
"DISCLAIMER: This message is proprietary to Hughes Software Systems Limited
(HSS) and is intended solely for the use of the individual to whom it is
addressed. It may contain  privileged or confidential information and
should not be circulated or used for any purpose other than for what it is
intended. If you have received this message in error, please notify the
originator immediately. If you are not the intended recipient, you are
notified that you are strictly prohibited from using, copying, altering, or
disclosing the contents of this message. HSS accepts no responsibility for
loss or damage arising from the use of the information transmitted by this
email including damage from virus."



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux