[lkml]   [1996]   [Jul]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: linux headers and tcpdump programs
    > 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


    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)


     \ /
      Last update: 2005-03-22 13:38    [W:0.017 / U:21.544 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site