there are two versions of this structure: the BSD version and the GNU version. previously only the GNU version was supported. the only way to support both simultaneously is with an anonymous union, which was a nonstandard extension prior to C11, so some effort is made to avoid breakage with compilers which do not support anonymous unions. this commit is based on a patch by Timo Teräs, but with some changes. in particular, the GNU version of the structure is not exposed unless _GNU_SOURCE is defined; this both avoids namespace pollution and dependency on anonymous unions in the default feature profile. |
||
|---|---|---|
| .. | ||
| ether.h | ||
| icmp6.h | ||
| if_ether.h | ||
| igmp.h | ||
| in.h | ||
| in_systm.h | ||
| ip.h | ||
| ip6.h | ||
| ip_icmp.h | ||
| tcp.h | ||
| udp.h | ||