PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
ps2ip.h File Reference
#include <stddef.h>
#include <sys/socket.h>
#include <time.h>
+ Include dependency graph for ps2ip.h:

Go to the source code of this file.

Macros

#define LIBCGLUE_SYS_SOCKET_ALIASES   1
 

Functions

int ps2ipInit (struct ip4_addr *ip_address, struct ip4_addr *subnet_mask, struct ip4_addr *gateway)
 
void ps2ipDeinit (void)
 
void ps2ipSetHsyncTicksPerMSec (unsigned char ticks)
 
err_t ps2ip_input (struct pbuf *p, struct netif *inp)
 
err_t etharp_output (struct netif *netif, struct pbuf *q, const ip_addr_t *ipaddr)
 
err_t tcpip_input (struct pbuf *p, struct netif *inp)
 
struct netifnetif_add (struct netif *netif, void *state, netif_init_fn init, netif_input_fn input)
 
struct netifnetif_find (const char *name)
 
void netif_set_default (struct netif *netif)
 
void netif_set_ipaddr (struct netif *netif, const ip4_addr_t *ipaddr)
 
void netif_set_netmask (struct netif *netif, const ip4_addr_t *netmask)
 
void netif_set_gw (struct netif *netif, const ip4_addr_t *gw)
 
void netif_set_up (struct netif *netif)
 
void netif_set_down (struct netif *netif)
 
struct pbufpbuf_alloc (pbuf_layer l, u16 size, pbuf_type type)
 
void pbuf_realloc (struct pbuf *p, u16 size)
 
u8 pbuf_header (struct pbuf *p, s16 header_size)
 
void pbuf_ref (struct pbuf *p)
 
u8 pbuf_free (struct pbuf *p)
 
u8 pbuf_clen (struct pbuf *p)
 
void pbuf_chain (struct pbuf *h, struct pbuf *t)
 
struct pbufpbuf_dechain (struct pbuf *p)
 
struct pbufpbuf_take (struct pbuf *f)
 
struct pbufpbuf_coalesce (struct pbuf *p, pbuf_layer layer)
 

Detailed Description

Imports and definitions for ps2ip.

Definition in file ps2ip.h.

Macro Definition Documentation

◆ LIBCGLUE_SYS_SOCKET_ALIASES

#define LIBCGLUE_SYS_SOCKET_ALIASES   1

Definition at line 20 of file ps2ip.h.

Function Documentation

◆ ps2ipInit()

int ps2ipInit ( struct ip4_addr ip_address,
struct ip4_addr subnet_mask,
struct ip4_addr gateway 
)

Initializes PS2IP. Specify a dummy address like "169.254.0.1" if DHCP is to be used, before enabling DHCP via ps2ip_setconfig().

Definition at line 323 of file ps2ip.c.

References SMapIFInit().

◆ ps2ipDeinit()

void ps2ipDeinit ( void  )

Definition at line 351 of file ps2ip.c.

◆ ps2ipSetHsyncTicksPerMSec()

void ps2ipSetHsyncTicksPerMSec ( unsigned char  ticks)

Use to specify the number of H-sync ticks per milisecond (Default: 16). Use this function to keep timings accurate, if a mode like 480P (~31KHz H-sync) is used instead of NTSC/PAL (~16KHz H-sync).
This function is obsolete, so it is stubbed for compatibility purposes.

Definition at line 358 of file ps2ip.c.

◆ ps2ip_input()

err_t ps2ip_input ( struct pbuf p,
struct netif inp 
)

Definition at line 293 of file ps2ip.c.

◆ netif_find()

struct netif * netif_find ( const char *  name)

Returns a network interface given its name. The name is of the form "et0", where the first two letters are the "name" field in the netif structure, and the digit is in the num field in the same structure.