blob: 9a254b8eeec175f77021c5e64d4e72427c5feb44 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#ifndef _UDP_H
#define _UDP_H
#include "etherboot.h"
#include "ip.h"
struct udp_pseudo_hdr {
in_addr src;
in_addr dest;
uint8_t unused;
uint8_t protocol;
uint16_t len;
} PACKED;
struct udphdr {
uint16_t src;
uint16_t dest;
uint16_t len;
uint16_t chksum;
struct {} payload;
} PACKED;
struct udppacket {
struct iphdr ip;
struct udphdr udp;
struct {} payload;
} PACKED;
#endif /* _UDP_H */
|