INET Framework for OMNeT++/OMNEST
netif.h File Reference
#include "lwip/opt.h"
#include "lwip/err.h"
#include "lwip/ip_addr.h"
#include "lwip/inet.h"
#include "lwip/pbuf.h"

Classes

struct  inet::tcp::netif
 Generic data structure used for all lwIP network interfaces. More...
 

Namespaces

 inet
 Copyright (c) 2005 Jan Ringo�, www.ringos.cz.
 
 inet::tcp
 

Macros

#define ENABLE_LOOPBACK   (LWIP_NETIF_LOOPBACK || LWIP_HAVE_LOOPIF)
 
#define NETIF_MAX_HWADDR_LEN   6U
 must be the maximum of all used hardware address lengths across all types of interfaces in use More...
 
#define NETIF_FLAG_UP   0x01U
 TODO: define the use (where, when, whom) of netif flags. More...
 
#define NETIF_FLAG_BROADCAST   0x02U
 if set, the netif has broadcast capability More...
 
#define NETIF_FLAG_POINTTOPOINT   0x04U
 if set, the netif is one end of a point-to-point connection More...
 
#define NETIF_FLAG_DHCP   0x08U
 if set, the interface is configured using DHCP More...
 
#define NETIF_FLAG_LINK_UP   0x10U
 if set, the interface has an active link (set by the network interface driver) More...
 
#define NETIF_FLAG_ETHARP   0x20U
 if set, the netif is an device using ARP More...
 
#define NETIF_FLAG_IGMP   0x40U
 if set, the netif has IGMP capability More...
 
#define NETIF_INIT_SNMP(netif, type, speed)
 
#define netif_init()   /* Compatibility define, not init needed. */
 

Functions

struct netif * inet::tcp::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 inet::tcp::netif_set_addr (struct netif *netif, struct ip_addr *ipaddr, struct ip_addr *netmask, struct ip_addr *gw)
 
void inet::tcp::netif_remove (struct netif *netif)
 
struct netif * inet::tcp::netif_find (char *name)
 
void inet::tcp::netif_set_default (struct netif *netif)
 
void inet::tcp::netif_set_ipaddr (struct netif *netif, struct ip_addr *ipaddr)
 
void inet::tcp::netif_set_netmask (struct netif *netif, struct ip_addr *netmask)
 
void inet::tcp::netif_set_gw (struct netif *netif, struct ip_addr *gw)
 
void inet::tcp::netif_set_up (struct netif *netif)
 
void inet::tcp::netif_set_down (struct netif *netif)
 
u8_t inet::tcp::netif_is_up (struct netif *netif)
 

Variables

struct netif * inet::tcp::netif_list
 The list of network interfaces. More...
 
struct netif * inet::tcp::netif_default
 The default network interface. More...
 

Macro Definition Documentation

#define ENABLE_LOOPBACK   (LWIP_NETIF_LOOPBACK || LWIP_HAVE_LOOPIF)
#define NETIF_FLAG_BROADCAST   0x02U

if set, the netif has broadcast capability

#define NETIF_FLAG_DHCP   0x08U

if set, the interface is configured using DHCP

#define NETIF_FLAG_ETHARP   0x20U

if set, the netif is an device using ARP

#define NETIF_FLAG_IGMP   0x40U

if set, the netif has IGMP capability

#define NETIF_FLAG_LINK_UP   0x10U

if set, the interface has an active link (set by the network interface driver)

#define NETIF_FLAG_POINTTOPOINT   0x04U

if set, the netif is one end of a point-to-point connection

#define NETIF_FLAG_UP   0x01U

TODO: define the use (where, when, whom) of netif flags.

whether the network interface is 'up'. this is a software flag used to control whether this network interface is enabled and processes traffic.

#define netif_init ( )    /* Compatibility define, not init needed. */
#define NETIF_INIT_SNMP (   netif,
  type,
  speed 
)
#define NETIF_MAX_HWADDR_LEN   6U

must be the maximum of all used hardware address lengths across all types of interfaces in use