lkml.org 
[lkml]   [1996]   [Jul]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: linux headers and tcpdump programs
Date
> I would imagine 
> net/udp.h to have something like:
>
>
> };
> #else
> struct udphdr {
> unsigned short source;
> unsigned short dest;
> unsigned short len;
> unsigned short check;
> };
> #endif

No

The Linux structures are defined in include/linux which is distributed with
the kernel. The others in include/net which is local. That seperation is
critical to stuff like cross compiling and porting.

The idea is that defining BSD source will let libc give you compatibility
defines, and POSIX source posix stuff (what is defined for posix anyway)


Alan


\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.059 / U:0.232 seconds]
©2003-2014 Jasper Spaans. Advertise on this site