From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 7 06:40:08 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D0D0D37B401 for ; Mon, 7 Jul 2003 06:40:08 -0700 (PDT) Received: from mail.rdstm.ro (mail.rdstm.ro [193.231.233.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 972CA43F85 for ; Mon, 7 Jul 2003 06:40:07 -0700 (PDT) (envelope-from aanton@reversedhell.net) Received: from reversedhell.net (casa_auto [81.196.32.25]) by mail.rdstm.ro (8.12.9/8.12.1) with ESMTP id h67De2FT014613 for ; Mon, 7 Jul 2003 16:40:04 +0300 Message-ID: <3F077EEF.7000704@reversedhell.net> Date: Sun, 06 Jul 2003 04:44:15 +0300 From: Alin-Adrian Anton User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3.1) Gecko/20030606 X-Accept-Language: en-us, en, ro MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: raw socket programming X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 13:40:09 -0000 Hey folks, I am playing with raw sockets on a FreeBSD 4.8 STABLE. This is the include section from my file: #include #include #include #include #include #include #include #include #include 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.