about ip.h

Giorgos Keramidas keramida at ceid.upatras.gr
Wed Sep 7 10:09:10 PDT 2005


On 2005-09-07 13:50, alicornio <alicornio at ig.com.br> wrote:
Content-Description: Mail message body
> hello all
>
> i have a problem when i try to compile a code. this is the error:
>
> in file included from packetCreate.c:5:
> /usr/include/netinet/ip.h:160: error: systax error before "n_long"
> /usr/include/netinet/ip.h:163: error: systax error before "n_long"
>
> then searching in the ip.h i change "n_long" to "u_long" and the code was
> compiled well.

	#include <netinet/in_systm.h>
	#include <netinet/ip.h>

should work


More information about the freebsd-questions mailing list