25 #include <sys/cdefs.h>
38 #define NETCFG_METHOD_DHCP 0
39 #define NETCFG_METHOD_STATIC 1
40 #define NETCFG_METHOD_PPPOE 4
51 #define NETCFG_SRC_VMU 0
52 #define NETCFG_SRC_FLASH 1
53 #define NETCFG_SRC_CWD 2
54 #define NETCFG_SRC_CDROOT 3
int netcfg_load_from(const char *fn, netcfg_t *out)
Load network configuration from a file.
int proxy_port
Proxy server port.
Definition: netcfg.h:87
int netcfg_load_flash(netcfg_t *out)
Load network configuration from the Dreamcast's flashrom.
int netcfg_save_to(const char *fn, const netcfg_t *cfg)
Save network configuration to a file.
Network configuration information.
Definition: netcfg.h:64
char pop3_login[64]
POP3 server username.
Definition: netcfg.h:84
char pop3[64]
POP3 server address.
Definition: netcfg.h:83
uint32 ip
IPv4 address of the console.
Definition: netcfg.h:75
int netcfg_save(const netcfg_t *cfg)
Save network configuration to the first available VMU.
int netcfg_load(netcfg_t *out)
Load network configuration.
char driver[64]
Driver program filename (if any).
Definition: netcfg.h:90
int method
How should the network be configured?
Definition: netcfg.h:73
int src
Where was this configuration read from?
Definition: netcfg.h:68
unsigned long uint32
32-bit unsigned integer
Definition: types.h:28
uint32 gateway
IPv4 address of the gateway/router.
Definition: netcfg.h:76
char smtp[64]
SMTP server address.
Definition: netcfg.h:82
char proxy_host[64]
Proxy server address.
Definition: netcfg.h:86
uint32 netmask
Network mask for the local net.
Definition: netcfg.h:77
uint32 broadcast
Broadcast address for the local net.
Definition: netcfg.h:78
uint32 dns[2]
IPv4 address of the DNS servers.
Definition: netcfg.h:79
char email[64]
E-Mail address.
Definition: netcfg.h:81
char ppp_login[64]
PPP Username.
Definition: netcfg.h:88
char pop3_passwd[64]
POP3 server password.
Definition: netcfg.h:85
char hostname[64]
DNS/DHCP hostname.
Definition: netcfg.h:80
char ppp_passwd[64]
PPP Password.
Definition: netcfg.h:89
struct netcfg netcfg_t
Network configuration information.