PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
ps2ip_internal.h
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 __PS2IP_INTERNAL_H__
12#define __PS2IP_INTERNAL_H__
13
14#include <types.h>
15#include "lwip/sockets.h"
16
17#ifdef DEBUG
18#define dbgprintf(args...) printf("PS2IP: "args)
19#else
20#define dbgprintf(args...)
21#endif
22
23//This structure is also found in common/tcpip.h, but that header file cannot be imported because it will conflict with the full LWIP header files.
24typedef struct
25{
26 char netif_name[4];
27 struct in_addr ipaddr;
28 struct in_addr netmask;
29 struct in_addr gw;
30 u32 dhcp_enabled;
31 u32 dhcp_status;
32 u8 hw_addr[8];
33} t_ip_info;
34
35#endif /* __PS2IP_INTERNAL_H__ */