2005-03-08 18:53:11 +00:00
|
|
|
#ifndef _UDP_H
|
|
|
|
#define _UDP_H
|
|
|
|
|
2005-05-01 10:40:12 +00:00
|
|
|
#include "stddef.h"
|
|
|
|
#include "stdint.h"
|
2006-03-23 16:45:01 +00:00
|
|
|
#include <gpxe/in.h>
|
2005-03-08 18:53:11 +00:00
|
|
|
#include "ip.h"
|
|
|
|
|
|
|
|
struct udp_pseudo_hdr {
|
2005-05-01 10:40:12 +00:00
|
|
|
struct in_addr src;
|
|
|
|
struct in_addr dest;
|
2005-03-08 18:53:11 +00:00
|
|
|
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 */
|