Click
Loading...
Searching...
No Matches
udp.h
1#ifndef CLICKNET_UDP_H
2#define CLICKNET_UDP_H
3
4/*
5 * <clicknet/udp.h> -- UDP header definitions, based on one of the BSDs.
6 *
7 * Relevant RFCs include:
8 * RFC768 User Datagram Protocol
9 */
10
11struct click_udp {
12 uint16_t uh_sport; /* 0-1 source port */
13 uint16_t uh_dport; /* 2-3 destination port */
14 uint16_t uh_ulen; /* 4-5 UDP length */
15 uint16_t uh_sum; /* 6-7 checksum */
16};
17
18#endif