Files
NE_YuR/openflow/include/clicknet/udp.h

19 lines
436 B
C

#ifndef CLICKNET_UDP_H
#define CLICKNET_UDP_H
/*
* <clicknet/udp.h> -- UDP header definitions, based on one of the BSDs.
*
* Relevant RFCs include:
* RFC768 User Datagram Protocol
*/
struct click_udp {
uint16_t uh_sport; /* 0-1 source port */
uint16_t uh_dport; /* 2-3 destination port */
uint16_t uh_ulen; /* 4-5 UDP length */
uint16_t uh_sum; /* 6-7 checksum */
};
#endif