http://git.etherboot.org
/
people
/
xl0
/
gpxe.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Moved include/in.h to include/gpxe/in.h, so that it can be included by
[people/xl0/gpxe.git]
/
src
/
include
/
udp.h
1
#ifndef _UDP_H
2
#define _UDP_H
3
4
#include "stddef.h"
5
#include "stdint.h"
6
#include <gpxe/in.h>
7
#include "ip.h"
8
9
struct udp_pseudo_hdr {
10
struct in_addr src;
11
struct in_addr dest;
12
uint8_t unused;
13
uint8_t protocol;
14
uint16_t len;
15
} PACKED;
16
struct udphdr {
17
uint16_t src;
18
uint16_t dest;
19
uint16_t len;
20
uint16_t chksum;
21
struct {} payload;
22
} PACKED;
23
struct udppacket {
24
struct iphdr ip;
25
struct udphdr udp;
26
struct {} payload;
27
} PACKED;
28
29
#endif /* _UDP_H */