Initial revision

This commit is contained in:
Michael Brown
2005-03-08 18:53:11 +00:00
commit 3d6123e69a
373 changed files with 114041 additions and 0 deletions

27
src/include/udp.h Normal file
View File

@@ -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 */