12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- #ifndef __NETINET_UDP_H
- #define __NETINET_UDP_H 1
- #include <features.h>
- #include <sys/types.h>
- #ifdef __FAVOR_BSD
- struct udphdr
- {
- u_int16_t uh_sport;
- u_int16_t uh_dport;
- u_int16_t uh_ulen;
- u_int16_t uh_sum;
- };
- #else
- struct udphdr
- {
- u_int16_t source;
- u_int16_t dest;
- u_int16_t len;
- u_int16_t check;
- };
- #endif
- #define UDP_CORK 1
- #define UDP_ENCAP 100
- #define UDP_ENCAP_ESPINUDP_NON_IKE 1
- #define UDP_ENCAP_ESPINUDP 2
- #define UDP_ENCAP_L2TPINUDP 3
- #define SOL_UDP 17
- #endif
|