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 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.
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.
name | Name of the device. |
int NutNetSaveConfig | ( | void | ) |
Save network configuration in non-volatile memory.
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.