alternatively, we could define it in sys/socket.h since SO* is reserved there, and tcp.h includes sys/socket.h in extensions mode. note that SOL_TCP is simply wrong and it's only here for compatibility with broken applications. the correct argument to pass for setting TCP socket options is IPPROTO_TCP, which of course has the same value as SOL_TCP but works everywhere. |
||
|---|---|---|
| .. | ||
| icmp6.h | ||
| if_ether.h | ||
| in.h | ||
| in_systm.h | ||
| ip.h | ||
| ip6.h | ||
| ip_icmp.h | ||
| tcp.h | ||
| udp.h | ||