XgConfNet


Data Structures

struct  _CONFNET
 Network configuration structure. More...

Defines

#define CONFNET_EE_OFFSET   64
 Non-volatile memory location.
#define CONFNET_MAX_IF   1

Functions

struct __attribute__ ((packed)) _CONFNET CONFNET
 Network configuration type.
int NutNetLoadConfig (CONST char *name)
 Load network configuration from non-volatile memory.
int NutNetSaveConfig (void)
 Save network configuration in non-volatile memory.

Variables

CONFNET confnet
 Global network configuration structure.
CONFNET confnet
 Global network configuration structure.


Define Documentation

#define CONFNET_EE_OFFSET   64

Non-volatile memory location.

Offset into non-volatile memory, where Nut/Net stores the network configuration. The default may be overridden by the Configurator.


Function Documentation

struct __attribute__ ( (packed)   ) 

Network configuration type.

Once created, this structure will never change if it points to another directory. Except if the entry is removed.

< Packet opcode type: 1=request, 2=reply

< Hardware address type: 1=Ethernet

< Hardware address length: 6 for Ethernet

< Gateway hops

< Transaction ID

< Seconds since boot began

< RFC1532 broadcast, etc.

< Client IP address

< 'Your' IP address

< Server IP address

< Gateway IP address

< Client hardware address

< Server host name

< Boot file name

< Vendor-specific area

int NutNetLoadConfig ( CONST char *  name  ) 

Load network configuration from non-volatile memory.

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 non-volatile memory.

Returns:
0 if OK, -1 on failures.


Variable Documentation

CONFNET confnet

Global network configuration structure.

Contains the current network configuration. Nut/Net will load this structure from non-volatile memory during initialization.

CONFNET confnet

Global network configuration structure.

Contains the current network configuration. Nut/Net will load this structure from non-volatile memory during initialization.


Generated on Tue Jan 23 21:12:31 2007 for BTnut System Software by doxygen 1.4.7