KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
netcfg.h File Reference

Network configuration interface. More...

#include <sys/cdefs.h>
#include <arch/types.h>

Go to the source code of this file.

Data Structures

struct  netcfg_t
 Network configuration information. More...
 

Macros

#define NETCFG_METHOD_DHCP   0
 Use DHCP to configure.
 
#define NETCFG_METHOD_STATIC   1
 Static network configuration.
 
#define NETCFG_METHOD_PPPOE   4
 Use PPPoE.
 
#define NETCFG_SRC_VMU   0
 Read from a VMU.
 
#define NETCFG_SRC_FLASH   1
 Read from the flashrom.
 
#define NETCFG_SRC_CWD   2
 Read from the working directory.
 
#define NETCFG_SRC_CDROOT   3
 Read from the root of the CD.
 

Functions

int netcfg_load_from (const char *fn, netcfg_t *out)
 Load network configuration from a file.
 
int netcfg_load_flash (netcfg_t *out)
 Load network configuration from the Dreamcast's flashrom.
 
int netcfg_load (netcfg_t *out)
 Load network configuration.
 
int netcfg_save_to (const char *fn, const netcfg_t *cfg)
 Save network configuration to a file.
 
int netcfg_save (const netcfg_t *cfg)
 Save network configuration to the first available VMU.
 

Detailed Description

Network configuration interface.

This file provides a common interface for reading and writing the network configuration on KOS. The interface can read from the flashrom on the Dreamcast or from a file (such as on a VMU or the like), and can write data back to a file.

The data that is written out by this code is written in a relatively easy to parse text-based format.

Author
Megan Potter