summaryrefslogtreecommitdiffstats
path: root/src/include/udp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/udp.h')
-rw-r--r--src/include/udp.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/include/udp.h b/src/include/udp.h
new file mode 100644
index 000000000..9a254b8ee
--- /dev/null
+++ b/src/include/udp.h
@@ -0,0 +1,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 */