http://git.etherboot.org
/
gpxe.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
5c9b7271b601e1fd521fcc0418b395fc11c15e7f
[gpxe.git]
/
src
/
include
/
ip.h
1
#ifndef _IP_H
2
#define _IP_H
3
4
#include "stddef.h"
5
#include "stdint.h"
6
#include "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 */