Date: Mon, 7 Jul 2003 16:30:26 +0200 From: Viktor Vasilev <viktor@rbg.informatik.tu-darmstadt.de> To: Alin-Adrian Anton <aanton@reversedhell.net> Cc: freebsd-hackers@freebsd.org Subject: Re: raw socket programming Message-ID: <20030707143026.GA6927@rbg.informatik.tu-darmstadt.de> In-Reply-To: <3F07860E.9060702@reversedhell.net> References: <0193271C683D5844A478A359271B8F66147AD8@DC1.dynatec.com> <3F07860E.9060702@reversedhell.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030707143026.GA6927>
