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;
24
u32
dhcp_enabled
;
25
u32
dhcp_status
;
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)
ps2ip_input
err_t ps2ip_input(struct pbuf *p, struct netif *inp)
netif_name
char netif_name[8]
Definition:
ps2ipc.c:38
in_addr
Definition:
tcpip.h:1277
netif
Definition:
tcpip.h:1065
pbuf
Definition:
tcpip.h:165
t_ip_info
Definition:
ps2ip_internal.h:19
t_ip_info::dhcp_status
u32 dhcp_status
Definition:
ps2ip_internal.h:25
t_ip_info::dhcp_enabled
u32 dhcp_enabled
Definition:
ps2ip_internal.h:24
u32
unsigned int u32
Definition:
tamtypes.h:30
u8
unsigned char u8
Definition:
tamtypes.h:23
err_t
signed char err_t
Definition:
tcpip.h:95
ee
network
tcpip
src
ps2ip_internal.h
Generated on Thu Feb 11 2021 11:42:22 for ps2sdk by
1.9.2