raw socket programming
Viktor Vasilev
viktor at rbg.informatik.tu-darmstadt.de
Mon Jul 7 07:30:45 PDT 2003
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
More information about the freebsd-hackers
mailing list