if_var.h File Reference


Detailed Description

Network interface structure.

Each network device in Nut/Net has an associated network interface structure.

Definition in file if_var.h.

Go to the source code of this file.

Data Structures

struct  _ARPENTRY
 ARP entry structure. More...
struct  _MCASTENTRY
 Multicast entry structure. More...
struct  ifnet
 Network interface structure. More...

Defines

#define ATF_REM   0x01
 Entry marked for removal.
#define ATF_COM   0x02
 Completed entry.
#define ATF_PERM   0x04
 Permanent entry.

Typedefs

typedef struct _ARPENTRY ARPENTRY
 ARP entry type.
typedef struct _MCASTENTRY MCASTENTRY
 Multicast address entry type.
typedef struct ifnet IFNET
 Network interface type.

Functions

int NutNetIfConfig2 (CONST char *name, void *mac_dev, u_long ip_addr, u_long ip_mask, u_long gateway)
 Configure a network interface including the default gateway.
int NutNetIfConfig (CONST char *name, void *mac_dev, u_long ip_addr, u_long ip_mask)
 Configure a network interface.
int NutNetIfSetup (NUTDEVICE *dev, u_long ip_addr, u_long ip_mask, u_long gateway)
 Network interface setup.
int NutNetLoadConfig (CONST char *name)
 Load network configuration from non-volatile memory.
int NutNetSaveConfig (void)
 Save network configuration in non-volatile memory.


© 2000-2007 by egnite Software GmbH - visit http://www.ethernut.de/