Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages | Examples

include/net/if_var.h File Reference


Detailed Description

Network interface structure.

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


Data Structures

struct  _ARPENTRY
 ARP entry structure. More...

struct  ifnet
 Network interface structure. More...


Defines

#define ATF_COM
 Completed entry.

#define ATF_PERM
 Permanent entry.


Typedefs

typedef _ARPENTRY ARPENTRY
 ARP entry type.

typedef 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 EEPROM.

int NutNetSaveConfig (void)
 Save network configuration in EEPROM.


Function Documentation

int NutNetLoadConfig CONST char *  name  ) 
 

Load network configuration from EEPROM.

If no configuration is available in EEPROM, all configuration parameters are cleared to zero. Except the MAC address, which is set to the Ethernet broadcast address.

Parameters:
name Name of the device.
Returns:
0 if configuration has been read. Otherwise the return value is -1.

int NutNetSaveConfig void   ) 
 

Save network configuration in EEPROM.

Returns:
Allways 0.
Examples:
tcps/tcps.c.


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