repo.or.cz
/
gpxe.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
warnings cleanup (still gives lots of compilation warnings from unused functions...
[gpxe.git]
/
src
/
include
/
ip.h
blob
9da7f56a9e82e15cfa23f777fe8891480f675792
1
#ifndef _IP_H
2
#define _IP_H
3
4
#include
"stddef.h"
5
#include
"stdint.h"
6
#include <gpxe/in.h>
7
8
struct
iphdr
{
9
uint8_t
verhdrlen
;
10
uint8_t
service
;
11
uint16_t
len
;
12
uint16_t
ident
;
13
uint16_t
frags
;
14
uint8_t
ttl
;
15
uint8_t
protocol
;
16
uint16_t
chksum
;
17
struct
in_addr src
;
18
struct
in_addr dest
;
19
}
PACKED
;
20
21
extern
uint16_t
tcpudpchksum
(
struct
iphdr
*
ip
);
22
23
#endif
/* _IP_H */