Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 06 Jul 2003 04:44:15 +0300
From:      Alin-Adrian Anton <aanton@reversedhell.net>
To:        freebsd-hackers@freebsd.org
Subject:   raw socket programming
Message-ID:  <3F077EEF.7000704@reversedhell.net>

next in thread | raw e-mail | index | archive | help
Hey folks,

I am playing with raw sockets on a FreeBSD 4.8 STABLE. This is the 
include section from my file:

#include <sys/types.h>
#include <sys/socket.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <netinet/in.h>
#include <netinet/ip.h>
#include <unistd.h>
#include <netinet/tcp.h>

When i try to compile the code, this is what I get:
%cc -o raw raw.c
In file included from raw.c:7:
/usr/include/netinet/ip.h:156: syntax error before `n_long'
/usr/include/netinet/ip.h:159: syntax error before `n_long'
%

Errors like that were many more, but I rearranged the included files in 
this particular order, and the huge number of errors was reduced to what 
I pasted. Before, there were errors in tcp.h and etc.

I would really appreciate an advice of what else to include/not to 
include in order to get things right.

Thanks in advance!

Yours Sincerely,
Alin.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F077EEF.7000704>