|
sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
|
Topics | |
| Flags | |
| MIB2 statistics | |
| IPv4 address handling | |
| IPv6 address handling | |
| Client data handling | |
Classes | |
| union | netif_ext_callback_args_t |
Macros | |
| #define | netif_is_up(netif) |
| #define | netif_is_up(netif) |
Typedefs | |
| typedef u16_t | netif_nsc_reason_t |
| typedef void(*) | netif_ext_callback_fn(struct netif *netif, netif_nsc_reason_t reason, const netif_ext_callback_args_t *args) |
Functions | |
| struct netif * | netif_add_noaddr (struct netif *netif, void *state, netif_init_fn init, netif_input_fn input) |
| struct netif * | netif_add (struct netif *netif, void *state, netif_init_fn init, netif_input_fn input) |
| void | netif_remove (struct netif *netif) |
| void | netif_set_default (struct netif *netif) |
| void | netif_set_up (struct netif *netif) |
| void | netif_set_down (struct netif *netif) |
| void | netif_set_link_up (struct netif *netif) |
| void | netif_set_link_down (struct netif *netif) |
| u8_t | netif_name_to_index (const char *name) |
| char * | netif_index_to_name (u8_t idx, char *name) |
| struct netif * | netif_get_by_index (u8_t idx) |
| struct netif * | netif_find (const char *name) |
| #define netif_is_up | ( | netif | ) |
Ask if an interface is up
| #define netif_is_up | ( | netif | ) |
Ask if an interface is up
| typedef void(*) netif_ext_callback_fn(struct netif *netif, netif_nsc_reason_t reason, const netif_ext_callback_args_t *args) |
| typedef u16_t netif_nsc_reason_t |
| struct netif * netif_add | ( | struct netif * | netif, |
| void * | state, | ||
| netif_init_fn | init, | ||
| netif_input_fn | input ) |
Add a network interface to the list of lwIP netifs.
| netif | a pre-allocated netif structure |
| ipaddr | IP address for the new netif |
| netmask | network mask for the new netif |
| gw | default gateway IP address for the new netif |
| state | opaque data passed to the new netif |
| init | callback function that initializes the interface |
| input | callback function that is called to pass ingress packets up in the protocol layer stack. It is recommended to use a function that passes the input directly to the stack (netif_input(), NO_SYS=1 mode) or via sending a message to TCPIP thread (tcpip_input(), NO_SYS=0 mode). These functions use netif flags NETIF_FLAG_ETHARP and NETIF_FLAG_ETHERNET to decide whether to forward to ethernet_input() or ip_input(). In other words, the functions only work when the netif driver is implemented correctly! Most members of struct netif should be be initialized by the netif init function = netif driver (init parameter of this function). IPv6: Don't forget to call netif_create_ip6_linklocal_address() after setting the MAC address in struct netif.hwaddr (IPv6 requires a link-local address). |
| struct netif * netif_add_noaddr | ( | struct netif * | netif, |
| void * | state, | ||
| netif_init_fn | init, | ||
| netif_input_fn | input ) |
| struct netif * netif_find | ( | const char * | name | ) |
| struct netif * netif_get_by_index | ( | u8_t | idx | ) |
| char * netif_index_to_name | ( | u8_t | idx, |
| char * | name ) |
| u8_t netif_name_to_index | ( | const char * | name | ) |
| void netif_remove | ( | struct netif * | netif | ) |
| void netif_set_default | ( | struct netif * | netif | ) |
| void netif_set_down | ( | struct netif * | netif | ) |
| void netif_set_link_down | ( | struct netif * | netif | ) |
| void netif_set_link_up | ( | struct netif * | netif | ) |