2
0
mirror of https://github.com/xcat2/xNBA.git synced 2024-12-15 07:41:45 +00:00
xNBA/src/include/udp.h

30 lines
459 B
C
Raw Normal View History

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"
#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 */