RetroArch
|
#include "lwip/opt.h"
#include "lwip/def.h"
#include "lwip/ip_addr.h"
#include "lwip/netif.h"
#include "lwip/tcp.h"
Functions | |
struct netif * | netif_add (struct netif *netif, struct ip_addr *ipaddr, struct ip_addr *netmask, struct ip_addr *gw, void *state, err_t(*init)(struct netif *netif), err_t(*input)(struct pbuf *p, struct netif *netif)) |
void | netif_set_addr (struct netif *netif, struct ip_addr *ipaddr, struct ip_addr *netmask, struct ip_addr *gw) |
void | netif_remove (struct netif *netif) |
struct netif * | netif_find (char *name) |
void | netif_set_ipaddr (struct netif *netif, struct ip_addr *ipaddr) |
void | netif_set_gw (struct netif *netif, struct ip_addr *gw) |
void | netif_set_netmask (struct netif *netif, struct ip_addr *netmask) |
void | netif_set_default (struct netif *netif) |
void | netif_set_up (struct netif *netif) |
u8_t | netif_is_up (struct netif *netif) |
void | netif_set_down (struct netif *netif) |
void | netif_init (void) |
Variables | |
struct netif * | netif_list = NULL |
struct netif * | netif_default = NULL |
lwIP network interface abstraction
struct netif* netif_add | ( | struct netif * | netif, |
struct ip_addr * | ipaddr, | ||
struct ip_addr * | netmask, | ||
struct ip_addr * | gw, | ||
void * | state, | ||
err_t(*)(struct netif *netif) | init, | ||
err_t(*)(struct pbuf *p, struct netif *netif) | 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. |
struct netif* netif_find | ( | char * | name | ) |
Ask if an interface is up
void netif_set_addr | ( | struct netif * | netif, |
struct ip_addr * | ipaddr, | ||
struct ip_addr * | netmask, | ||
struct ip_addr * | gw | ||
) |
Bring an interface down, disabling any traffic processing.
Bring an interface up, available for processing traffic.