mirror of https://github.com/ipxe/ipxe.git
Do not include etherboot.h
parent
552f33c663
commit
89f4fe4a8a
|
|
@ -1,6 +1,10 @@
|
||||||
#ifndef _IP_H
|
#ifndef _IP_H
|
||||||
#define _IP_H
|
#define _IP_H
|
||||||
|
|
||||||
|
#include "stddef.h"
|
||||||
|
#include "stdint.h"
|
||||||
|
#include "in.h"
|
||||||
|
|
||||||
struct iphdr {
|
struct iphdr {
|
||||||
uint8_t verhdrlen;
|
uint8_t verhdrlen;
|
||||||
uint8_t service;
|
uint8_t service;
|
||||||
|
|
@ -10,8 +14,8 @@ struct iphdr {
|
||||||
uint8_t ttl;
|
uint8_t ttl;
|
||||||
uint8_t protocol;
|
uint8_t protocol;
|
||||||
uint16_t chksum;
|
uint16_t chksum;
|
||||||
in_addr src;
|
struct in_addr src;
|
||||||
in_addr dest;
|
struct in_addr dest;
|
||||||
} PACKED;
|
} PACKED;
|
||||||
|
|
||||||
#endif /* _IP_H */
|
#endif /* _IP_H */
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,14 @@
|
||||||
#ifndef _UDP_H
|
#ifndef _UDP_H
|
||||||
#define _UDP_H
|
#define _UDP_H
|
||||||
|
|
||||||
#include "etherboot.h"
|
#include "stddef.h"
|
||||||
|
#include "stdint.h"
|
||||||
|
#include "in.h"
|
||||||
#include "ip.h"
|
#include "ip.h"
|
||||||
|
|
||||||
struct udp_pseudo_hdr {
|
struct udp_pseudo_hdr {
|
||||||
in_addr src;
|
struct in_addr src;
|
||||||
in_addr dest;
|
struct in_addr dest;
|
||||||
uint8_t unused;
|
uint8_t unused;
|
||||||
uint8_t protocol;
|
uint8_t protocol;
|
||||||
uint16_t len;
|
uint16_t len;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue