sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
netif Struct Reference

#include <tcpip.h>

Public Attributes

struct netif * next
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
u16_t mtu
u8_t hwaddr [NETIF_MAX_HWADDR_LEN]
u8_t hwaddr_len
u8_t flags
u8_t 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 1270 of file tcpip.h.

Member Data Documentation

◆ client_data

void* netif::client_data[LWIP_NETIF_CLIENT_DATA_INDEX_MAX+LWIP_NUM_NETIF_CLIENT_DATA]

Definition at line 1327 of file tcpip.h.

◆ flags [1/2]

u8 netif::flags

flags (

See also
Flags)

Definition at line 1351 of file tcpip.h.

◆ flags [2/2]

u8_t netif::flags

flags (

See also
Flags)

Definition at line 354 of file netif.h.

◆ gw

ip_addr_t netif::gw

Definition at line 1279 of file tcpip.h.

◆ hwaddr [1/2]

u8 netif::hwaddr[NETIF_MAX_HWADDR_LEN]

link level hardware address of this interface

Definition at line 1349 of file tcpip.h.

◆ hwaddr [2/2]

u8_t netif::hwaddr[NETIF_MAX_HWADDR_LEN]

link level hardware address of this interface

Definition at line 350 of file netif.h.

◆ hwaddr_len [1/2]

u8 netif::hwaddr_len

number of bytes used in hwaddr

Definition at line 1347 of file tcpip.h.

◆ hwaddr_len [2/2]

u8_t netif::hwaddr_len

number of bytes used in hwaddr

Definition at line 352 of file netif.h.

◆ 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 1290 of file tcpip.h.

◆ ip_addr

ip_addr_t netif::ip_addr

IP address configuration in network byte order

Definition at line 1277 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 1301 of file tcpip.h.

◆ mtu [1/2]

u16 netif::mtu

maximum transfer unit (in bytes)

Definition at line 1345 of file tcpip.h.

◆ mtu [2/2]

u16_t netif::mtu

maximum transfer unit (in bytes)

Definition at line 344 of file netif.h.

◆ name

char netif::name

descriptive abbreviation

Definition at line 1353 of file tcpip.h.

◆ netmask

ip_addr_t netif::netmask

Definition at line 1278 of file tcpip.h.

◆ next

struct netif * netif::next

pointer to next in linked list

Definition at line 1273 of file tcpip.h.

◆ num [1/2]

u8 netif::num

number of this interface

Definition at line 1355 of file tcpip.h.

◆ num [2/2]

u8_t netif::num

number of this interface. Used for if_api and netifapi_netif, as well as for IPv6 zones

Definition at line 359 of file netif.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 1296 of file tcpip.h.

◆ rs_count

u8 netif::rs_count

Number of Router Solicitation messages that remain to be sent.

Definition at line 1335 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 1325 of file tcpip.h.


The documentation for this struct was generated from the following files:
  • core/common/include/tcpip.h
  • core/ps2ip/include/lwip_include/lwip/netif.h