diff --git a/include/netinet/udp.h b/include/netinet/udp.h index 756b8d26e9..36a9a80aec 100644 --- a/include/netinet/udp.h +++ b/include/netinet/udp.h @@ -31,4 +31,27 @@ * Pre-processor Definitions ****************************************************************************/ +/* UDP header as specified by RFC 768, August 1980. */ + +struct udphdr +{ + union + { + struct + { + uint16_t uh_sport; /* source port */ + uint16_t uh_dport; /* destination port */ + uint16_t uh_ulen; /* udp length */ + uint16_t uh_sum; /* udp checksum */ + }; + struct + { + uint16_t source; + uint16_t dest; + uint16_t len; + uint16_t check; + }; + }; +}; + #endif /* __INCLUDE_NETINET_UDP_H */