Tizen RT Libs&Environment  v1.1 D4
netif.h File Reference

netif API (to be used from lwIP TCPIP thread) More...

#include <tinyara/config.h>
#include <net/ethernet.h>
#include <net/lwip/opt.h>
#include <net/lwip/err.h>
#include <net/lwip/ipv4/ip_addr.h>
#include <net/lwip/def.h>
#include <net/lwip/pbuf.h>
Include dependency graph for netif.h:

Go to the source code of this file.

Data Structures

struct  netif
 

Macros

#define MAX_NET_DEV_MTU   1500
 
#define ENABLE_LOOPBACK   (LWIP_NETIF_LOOPBACK || LWIP_HAVE_LOOPIF)
 
#define IP_ADDR0   192
 
#define IP_ADDR1   168
 
#define IP_ADDR2   2
 
#define IP_ADDR3   10
 
#define NETMASK_ADDR0   255
 
#define NETMASK_ADDR1   255
 
#define NETMASK_ADDR2   255
 
#define NETMASK_ADDR3   0
 
#define GW_ADDR0   192
 
#define GW_ADDR1   168
 
#define GW_ADDR2   2
 
#define GW_ADDR3   1
 
#define EXTERN   extern
 
#define NETIF_MAX_HWADDR_LEN   6U
 
#define NETIF_FLAG_UP   0x01U
 
#define NETIF_FLAG_BROADCAST   0x02U
 
#define NETIF_FLAG_POINTTOPOINT   0x04U
 
#define NETIF_FLAG_DHCP   0x08U
 
#define NETIF_FLAG_LINK_UP   0x10U
 
#define NETIF_FLAG_ETHARP   0x20U
 
#define NETIF_FLAG_ETHERNET   0x40U
 
#define NETIF_FLAG_IGMP   0x80U
 
#define MAC_ADDRLEN   0
 
#define MAC_HDRLEN   0
 
#define NETIF_INIT_SNMP(netif, type, speed)
 

Typedefs

typedef err_t(* netif_init_fn) (struct netif *netif)
 
typedef err_t(* netif_input_fn) (struct pbuf *p, struct netif *inp)
 
typedef err_t(* netif_output_fn) (struct netif *netif, struct pbuf *p, ip_addr_t *ipaddr)
 
typedef err_t(* netif_linkoutput_fn) (struct netif *netif, struct pbuf *p)
 
typedef void(* netif_status_callback_fn) (struct netif *netif)
 
typedef err_t(* netif_igmp_mac_filter_fn) (struct netif *netif, ip_addr_t *group, u8_t action)
 

Functions

void netif_set_addr (struct netif *netif, ip_addr_t *ipaddr, ip_addr_t *netmask, ip_addr_t *gw)
 Change IP address configuration for a network interface (including netmask and default gateway). More...
 
struct netifnetif_find (const char *name)
 Find a network interface by searching for its name. More...
 
void netif_set_up (struct netif *netif)
 Bring an interface up, available for processing traffic. More...
 
void netif_set_down (struct netif *netif)
 Bring an interface down, disabling any traffic processing. More...
 

Variables

struct netifnetif_list
 
struct netifnetif_default
 

Detailed Description

netif API (to be used from lwIP TCPIP thread)

Definition in file netif.h.