From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 7 07:30:45 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 0AD3937B401 for ; Mon, 7 Jul 2003 07:30:45 -0700 (PDT) Received: from ultra02.rbg.informatik.tu-darmstadt.de (ultra02.rbg.informatik.tu-darmstadt.de [130.83.9.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6EF8243F3F for ; Mon, 7 Jul 2003 07:30:43 -0700 (PDT) (envelope-from viktor@rbg.informatik.tu-darmstadt.de) Received: from ABC216.ram1st.wh.tu-darmstadt.de (ultra19.rbg.informatik.tu-darmstadt.de [130.83.129.6]) SMTP id h67EUaj03937; Mon, 7 Jul 2003 16:30:36 +0200 (MEST) Received: by ABC216.ram1st.wh.tu-darmstadt.de (sSMTP sendmail emulation); Mon, 7 Jul 2003 16:30:26 +0200 Date: Mon, 7 Jul 2003 16:30:26 +0200 From: Viktor Vasilev To: Alin-Adrian Anton Message-ID: <20030707143026.GA6927@rbg.informatik.tu-darmstadt.de> Mail-Followup-To: Alin-Adrian Anton , freebsd-hackers@freebsd.org References: <0193271C683D5844A478A359271B8F66147AD8@DC1.dynatec.com> <3F07860E.9060702@reversedhell.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F07860E.9060702@reversedhell.net> User-Agent: Mutt/1.4i X-Operating-System: FreeBSD 5.0-RELEASE i386 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:30:45 -0000 Hi, On Sun, Jul 06, 2003 at 05:14:38AM +0300, Alin-Adrian Anton wrote: > Well, I don't wanna be idiot, perhaps I am too tired, but n_long appears > in ip.h defined as : > > beast# grep ipt_time /usr/include/netinet/ip.h > union ipt_timestamp { > n_long ipt_time[1]; > n_long ipt_time; > } ipt_timestamp; > beast# grep ipt_time /usr/include/netinet/* > /usr/include/netinet/ip.h: union ipt_timestamp { > /usr/include/netinet/ip.h: n_long ipt_time[1]; > /usr/include/netinet/ip.h: n_long ipt_time; > /usr/include/netinet/ip.h: } ipt_timestamp; > beast# Actually it's defined in: /usr/include/netinet/in_systm.h:typedef u_int32_t n_long; /* long as received from the net */ What the problem might be, is that in_systm.h isn't included anywhere: cd /usr/include; grep in_systm.h `find . -type f` ./netinet/in_systm.h: * @(#)in_systm.h 8.1 (Berkeley) 6/10/93 ./netinet/in_systm.h: * $FreeBSD: src/sys/netinet/in_systm.h,v 1.10 2002/03/19 21:25:46 alfred Exp $ Hope this helps. Regards, Viktor -- He who asks is a fool for five minutes, but he who does not ask reamins a fool forever. Old Chinese saying