repo.or.cz
/
open-ps2-loader.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Disabling auto-refresh of game list by default, as it is causing bugs sometimes
[open-ps2-loader.git]
/
modules
/
wip
/
lanman
/
ip.h
blob
fb86d0f59a03f0b7a3df6b0fadf80ca9ecd52172
1
/*
2
Copyright (c) 2010 jimmikaelkael <jimmikaelkael@wanadoo.fr>
3
Licenced under Academic Free License version 3.0
4
*/
5
6
#ifndef IP_H
7
#define IP_H
8
9
#include <tamtypes.h>
10
11
typedef
struct
{
12
u8 addr
[
4
];
13
}
ip_addr_t
__attribute__
((
packed
));
14
15
typedef
struct
{
16
// IP header (20)
17
u8 hlen
;
18
u8 tos
;
19
u16 len
;
20
u16 id
;
21
u8 flags
;
22
u8 frag_offset
;
23
u8 ttl
;
24
u8 proto
;
25
u16 csum
;
26
ip_addr_t addr_src
;
27
ip_addr_t addr_dst
;
28
}
ip_hdr_t
;
29
30
#endif
/* IP_H */