Date: Sun, 06 Jul 2003 05:47:37 +0300 From: Alin-Adrian Anton <aanton@reversedhell.net> Cc: freebsd-hackers@freebsd.org Subject: Re: raw socket programming Message-ID: <3F078DC9.3080708@reversedhell.net> In-Reply-To: <20030707162900.B49607@beagle.fokus.fraunhofer.de> References: <0193271C683D5844A478A359271B8F66147AD8@DC1.dynatec.com> <3F07860E.9060702@reversedhell.net> <20030707162900.B49607@beagle.fokus.fraunhofer.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Harti Brandt wrote: >On Sun, 6 Jul 2003, Alin-Adrian Anton wrote: > >AA>>>In file included from raw.c:7: >AA>>>/usr/include/netinet/ip.h:156: syntax error before `n_long' >AA>>>/usr/include/netinet/ip.h:159: syntax error before `n_long' > >You may want to include <netinet/in_systm.h> > >harti > > Yes, indeed this solves the n_long problem. This is how my include list looks now: #include <sys/types.h> #include <sys/socket.h> #include <stdio.h> #include <string.h> #include <errno.h> #include <netinet/in_systm.h> #include <netinet/ip.h> #include <netinet/in.h> #include <unistd.h> #include <netinet/tcp.h> And this is what I get when trying to compile: beast# cc -o raw raw.c In file included from raw.c:7: /usr/include/netinet/ip.h:73: field `ip_src' has incomplete type /usr/include/netinet/ip.h:73: field `ip_dst' has incomplete type /usr/include/netinet/ip.h:158: field `ipt_addr' has incomplete type beast# Alin.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F078DC9.3080708>