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.
static uint32_t("Please see purupuru_effect_t for modern equivalent.") PURUPURU_EFFECT2_UINTENSITY(uint8_t x)
Definition purupuru.h:96
Network configuration information.
Definition netcfg.h:75
uint32_t gateway
IPv4 address of the gateway/router.
Definition netcfg.h:87
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_t ip
IPv4 address of the console.
Definition netcfg.h:86
uint32_t broadcast
Broadcast address for the local net.
Definition netcfg.h:89
uint32_t netmask
Network mask for the local net.
Definition netcfg.h:88
int proxy_port
Proxy server port.
Definition netcfg.h:98