ps2sdk  1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
NetIF Struct Reference

#include <tcpip.h>

+ Collaboration diagram for NetIF:

Data Fields

struct netifnext
 
ip_addr_t ip_addr
 
ip_addr_t netmask
 
ip_addr_t gw
 
netif_input_fn input
 
netif_output_fn output
 
netif_linkoutput_fn linkoutput
 
void * state
 
void * client_data [LWIP_NETIF_CLIENT_DATA_INDEX_MAX+LWIP_NUM_NETIF_CLIENT_DATA]
 
u8 rs_count
 
u16 mtu
 
u8 hwaddr_len
 
u8 hwaddr [NETIF_MAX_HWADDR_LEN]
 
u8 flags
 
char name [2]
 
u8 num
 

Detailed Description

Generic data structure used for all lwIP network interfaces. The following fields should be filled in by the initialization function for the device driver: hwaddr_len, hwaddr[], mtu, flags

Definition at line 1065 of file tcpip.h.

Field Documentation

◆ client_data

Definition at line 1121 of file tcpip.h.

◆ flags

u8 NetIF::flags

flags (

See also
Flags)

Definition at line 1145 of file tcpip.h.

Referenced by SMapIFInit().

◆ gw

ip_addr_t NetIF::gw

Definition at line 1073 of file tcpip.h.

◆ hwaddr

u8 NetIF::hwaddr[NETIF_MAX_HWADDR_LEN]

link level hardware address of this interface

Definition at line 1143 of file tcpip.h.

Referenced by SMapIFInit().

◆ hwaddr_len

u8 NetIF::hwaddr_len

number of bytes used in hwaddr

Definition at line 1141 of file tcpip.h.

Referenced by SMapIFInit().

◆ input

netif_input_fn NetIF::input

This function is called by the network device driver to pass a packet up the TCP/IP stack.

Definition at line 1084 of file tcpip.h.

◆ ip_addr

ip_addr_t NetIF::ip_addr

IP address configuration in network byte order

Definition at line 1071 of file tcpip.h.

◆ linkoutput

netif_linkoutput_fn NetIF::linkoutput

This function is called by ethernet_output() when it wants to send a packet on the interface. This function outputs the pbuf as-is on the link medium.

Definition at line 1095 of file tcpip.h.

Referenced by SMapIFInit().

◆ mtu

u16 NetIF::mtu

maximum transfer unit (in bytes)

Definition at line 1139 of file tcpip.h.

Referenced by SMapIFInit().

◆ name

char NetIF::name[2]

descriptive abbreviation

Definition at line 1147 of file tcpip.h.

Referenced by SMapIFInit().

◆ netmask

ip_addr_t NetIF::netmask

Definition at line 1072 of file tcpip.h.

◆ next

struct netif* NetIF::next

pointer to next in linked list

Definition at line 1067 of file tcpip.h.

◆ num

u8 NetIF::num

number of this interface

Definition at line 1149 of file tcpip.h.

◆ output

netif_output_fn NetIF::output

This function is called by the IP module when it wants to send a packet on the interface. This function typically first resolves the hardware address, then sends the packet. For ethernet physical layer, this is usually etharp_output()

Definition at line 1090 of file tcpip.h.

Referenced by SMapIFInit().

◆ rs_count

u8 NetIF::rs_count

Number of Router Solicitation messages that remain to be sent.

Definition at line 1129 of file tcpip.h.

◆ state

void* NetIF::state

This field can be set by the device driver and could point to state information for the device.

Definition at line 1119 of file tcpip.h.


The documentation for this struct was generated from the following file: