Disabling auto-refresh of game list by default, as it is causing bugs sometimes
[open-ps2-loader.git] / modules / wip / lanman / ip.h
blobfb86d0f59a03f0b7a3df6b0fadf80ca9ecd52172
1 /*
2 Copyright (c) 2010 jimmikaelkael <jimmikaelkael@wanadoo.fr>
3 Licenced under Academic Free License version 3.0
4 */
6 #ifndef IP_H
7 #define IP_H
9 #include <tamtypes.h>
11 typedef struct {
12 u8 addr[4];
13 } ip_addr_t __attribute__((packed));
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;
30 #endif /* IP_H */