Disabling auto-refresh of game list by default, as it is causing bugs sometimes
[open-ps2-loader.git] / modules / wip / lanman / lanman.h
blob55fa4f3a4402aa99e0f1fe9a5f5edef25e86fcc2
1 /*
2 Copyright (c) 2010 jimmikaelkael <jimmikaelkael@wanadoo.fr>
3 Licenced under Academic Free License version 3.0
4 */
6 #ifndef LANMAN_H
7 #define LANMAN_H
9 #include <tamtypes.h>
11 /* These automatically convert the address and port to network order. */
12 #define IP_ADDR(a, b, c, d) (((d & 0xff) << 24) | ((c & 0xff) << 16) | \
13 ((b & 0xff) << 8) | ((a & 0xff)))
14 #define IP_PORT(port) (((port & 0xff00) >> 8) | ((port & 0xff) << 8))
16 typedef struct {
17 u8 eth_addr_dst[6];
18 u8 eth_addr_src[6];
19 u32 ip_addr_dst;
20 u32 ip_addr_src;
21 u16 ip_port_dst;
22 u16 ip_port_src;
23 } g_param_t;
25 #endif /* LANMAN_H */