From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 7 07:43:27 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 8BBD337B401 for ; Mon, 7 Jul 2003 07:43:27 -0700 (PDT) Received: from mail.rdstm.ro (mail.rdstm.ro [193.231.233.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7007843F75 for ; Mon, 7 Jul 2003 07:43:26 -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 h67EhOFT018211 for ; Mon, 7 Jul 2003 17:43:24 +0300 Message-ID: <3F078DC9.3080708@reversedhell.net> Date: Sun, 06 Jul 2003 05:47:37 +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 Cc: freebsd-hackers@freebsd.org References: <0193271C683D5844A478A359271B8F66147AD8@DC1.dynatec.com> <3F07860E.9060702@reversedhell.net> <20030707162900.B49607@beagle.fokus.fraunhofer.de> In-Reply-To: <20030707162900.B49607@beagle.fokus.fraunhofer.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: 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 14:43:28 -0000 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 > >harti > > Yes, indeed this solves the n_long problem. This is how my include list looks now: #include #include #include #include #include #include #include #include #include #include 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.