mirror of
https://github.com/ipxe/ipxe
synced 2025-12-22 21:11:03 +03:00
Initial revision
This commit is contained in:
27
src/include/udp.h
Normal file
27
src/include/udp.h
Normal 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 */
|
||||
Reference in New Issue
Block a user