ps2sdk  1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
ps2ip_internal.h
Go to the documentation of this file.
1 /*
2 # _____ ___ ____ ___ ____
3 # ____| | ____| | | |____|
4 # | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5 #-----------------------------------------------------------------------
6 # Copyright 2001-2004, ps2dev - http://www.ps2dev.org
7 # Licenced under Academic Free License version 2.0
8 # Review ps2sdk README & LICENSE files for further details.
9 */
10 
11 #ifndef IOP_PS2IP_INTERNAL_H
12 #define IOP_PS2IP_INTERNAL_H
13 
14 #include "lwip/sockets.h"
15 
16 #define netif_dhcp_data(netif) ((struct dhcp*)(netif)->client_data[LWIP_NETIF_CLIENT_DATA_INDEX_DHCP])
17 
18 typedef struct
19 {
20  char netif_name[4];
21  struct in_addr ipaddr;
22  struct in_addr netmask;
23  struct in_addr gw;
26  u8 hw_addr[8];
27 } t_ip_info;
28 
29 #ifdef DEBUG
30 #define dbgprintf(args...) printf(args)
31 #else
32 #define dbgprintf(args...)
33 #endif
34 
35 err_t ps2ip_input(struct pbuf *p, struct netif *inp);
36 
37 #endif // !defined(IOP_PS2IP_INTERNAL_H)
err_t ps2ip_input(struct pbuf *p, struct netif *inp)
char netif_name[8]
Definition: ps2ipc.c:38
Definition: tcpip.h:1065
Definition: tcpip.h:165
u32 dhcp_enabled
unsigned int u32
Definition: tamtypes.h:30
unsigned char u8
Definition: tamtypes.h:23
signed char err_t
Definition: tcpip.h:95