From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 7 07:49: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 60F7C37B401 for ; Mon, 7 Jul 2003 07:49:08 -0700 (PDT) Received: from mailhub.fokus.fraunhofer.de (mailhub.fokus.fraunhofer.de [193.174.154.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1998A43F75 for ; Mon, 7 Jul 2003 07:49:07 -0700 (PDT) (envelope-from brandt@fokus.fraunhofer.de) Received: from beagle (beagle [193.175.132.100])h67En4Q01016; Mon, 7 Jul 2003 16:49:04 +0200 (MEST) Date: Mon, 7 Jul 2003 16:49:04 +0200 (CEST) From: Harti Brandt To: Alin-Adrian Anton In-Reply-To: <3F078DC9.3080708@reversedhell.net> Message-ID: <20030707164832.L49607@beagle.fokus.fraunhofer.de> References: <0193271C683D5844A478A359271B8F66147AD8@DC1.dynatec.com> <20030707162900.B49607@beagle.fokus.fraunhofer.de> <3F078DC9.3080708@reversedhell.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-hackers@freebsd.org 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:49:08 -0000 On Sun, 6 Jul 2003, Alin-Adrian Anton wrote: AA>Harti Brandt wrote: AA> AA>>On Sun, 6 Jul 2003, Alin-Adrian Anton wrote: AA>> AA>>AA>>>In file included from raw.c:7: AA>>AA>>>/usr/include/netinet/ip.h:156: syntax error before `n_long' AA>>AA>>>/usr/include/netinet/ip.h:159: syntax error before `n_long' AA>> AA>>You may want to include AA>> AA>>harti AA>> AA>> AA> AA>Yes, indeed this solves the n_long problem. This is how my include list AA>looks now: AA> AA>#include AA>#include AA>#include AA>#include AA>#include AA>#include AA>#include AA>#include AA>#include AA>#include AA> AA>And this is what I get when trying to compile: AA> AA>beast# cc -o raw raw.c AA>In file included from raw.c:7: AA>/usr/include/netinet/ip.h:73: field `ip_src' has incomplete type AA>/usr/include/netinet/ip.h:73: field `ip_dst' has incomplete type AA>/usr/include/netinet/ip.h:158: field `ipt_addr' has incomplete type AA>beast# Try to swap ip.h and in.h (in.h declares struct in_addr). harti -- harti brandt, http://www.fokus.fraunhofer.de/research/cc/cats/employees/hartmut.brandt/private brandt@fokus.fraunhofer.de, harti@freebsd.org