Re: raw socket programming

[ Available lists | Index of freebsd-hackers | Month of Jul 2003 | Week of 7 Jul 2003 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Viktor Vasilev <viktor@rbg.informatik.tu-darmstadt.de>
Date
7 Jul 2003 07:30:45
Subject
Re: raw socket programming
Message-ID
20030707143026.GA6927@rbg.informatik.tu-darmstadt.de

In reply to
Referenced by

[ Hide this part ]
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


Elapsed time: 0.244 seconds