46#define NETCFG_METHOD_DHCP 0
47#define NETCFG_METHOD_STATIC 1
48#define NETCFG_METHOD_PPPOE 4
61#define NETCFG_SRC_VMU 0
62#define NETCFG_SRC_FLASH 1
63#define NETCFG_SRC_CWD 2
64#define NETCFG_SRC_CDROOT 3
75typedef struct netcfg {
int netcfg_save(const netcfg_t *cfg)
Save network configuration to the first available VMU.
int netcfg_save_to(const char *fn, const netcfg_t *cfg)
Save network configuration to a file.
int netcfg_load_flash(netcfg_t *out)
Load network configuration from the Dreamcast's flashrom.
int netcfg_load_from(const char *fn, netcfg_t *out)
Load network configuration from a file.
int netcfg_load(netcfg_t *out)
Load network configuration.
unsigned long uint32
32-bit unsigned integer
Definition types.h:33
Network configuration information.
Definition netcfg.h:75
int src
Where was this configuration read from?
Definition netcfg.h:79
int method
How should the network be configured?
Definition netcfg.h:84
uint32 netmask
Network mask for the local net.
Definition netcfg.h:88
uint32 gateway
IPv4 address of the gateway/router.
Definition netcfg.h:87
uint32 broadcast
Broadcast address for the local net.
Definition netcfg.h:89
int proxy_port
Proxy server port.
Definition netcfg.h:98
uint32 ip
IPv4 address of the console.
Definition netcfg.h:86