wut  v1.7.0
Wii U Toolchain
Data Structures | Typedefs | Enumerations | Functions
netconfig.h File Reference
#include <wut.h>
#include <wut_rplwrap.h>
#include <stdint.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
Include dependency graph for netconfig.h:

Go to the source code of this file.

Data Structures

struct  NetConfAllProfileState
 
struct  NetConfEthCfg
 
struct  NetConfIPv4Info
 
struct  NetConfMACAddr
 
struct  NetConfProxyConfig
 
struct  NetConfValidFlags
 
struct  NetConfWifiConfigDataPrivacy
 
struct  NetConfWifiConfigData
 
struct  NetConfWifiConfig
 
struct  NetConfOpt
 
struct  NetConfInterface
 
struct  NetConfCfg
 
struct  NetConfAOSSConfig
 
struct  NetConfIfState
 

Typedefs

typedef uint16_t NetConfEthCfgSpeed
 
typedef uint16_t NetConfEthCfgDuplex
 
typedef uint16_t NetConfEthCfgNegotiation
 
typedef uint16_t NetConfWifiPrivacyMode
 
typedef uint16_t NetConfProxyAuthType
 
typedef uint16_t NetConfProxyStatus
 
typedef uint16_t NetConfInterfaceType
 
typedef uint16_t NetConfLinkState
 
typedef uint16_t NetConfOperState
 
typedef uint16_t NetConfAdminState
 
typedef struct NetConfAllProfileState NetConfAllProfileState
 
typedef struct NetConfEthCfg NetConfEthCfg
 
typedef struct NetConfProxyConfig NetConfProxyConfig
 
typedef struct NetConfValidFlags NetConfValidFlags
 
typedef struct NetConfWifiConfig NetConfWifiConfig
 
typedef struct NetConfOpt NetConfOpt
 
typedef struct NetConfIPv4Info NetConfIPv4Info
 
typedef struct NetConfMACAddr NetConfMACAddr
 
typedef struct NetConfCfg NetConfCfg
 
typedef struct NetConfAOSSConfig NetConfAOSSConfig
 
typedef struct NetConfWifiConfigData NetConfWifiConfigData
 
typedef struct NetConfWifiConfigDataPrivacy NetConfWifiConfigDataPrivacy
 
typedef struct NetConfInterface NetConfInterface
 
typedef struct NetConfIfState NetConfIfState
 
typedef enum NetConfInterfaceTypeEnum NetConfInterfaceTypeEnum
 
typedef enum NetConfEthCfgSpeedEnum NetConfEthCfgSpeedEnum
 
typedef enum NetConfEthCfgDuplexEnum NetConfEthCfgDuplexEnum
 
typedef enum NetConfEthCfgNegotiationEnum NetConfEthCfgNegotiationEnum
 
typedef enum NetConfIPv4Mode NetConfIPv4Mode
 
typedef enum NetConfWifiPrivacyModeEnum NetConfWifiPrivacyModeEnum
 
typedef enum NetConfProxyAuthTypeEnum NetConfProxyAuthTypeEnum
 
typedef enum NetConfProxyStatusEnum NetConfProxyStatusEnum
 
typedef enum NetConfLinkStateEnum NetConfLinkStateEnum
 
typedef enum NetConfOperStateEnum NetConfOperStateEnum
 
typedef enum NetConfAdminStateEnum NetConfAdminStateEnum
 
typedef enum NetConfProfile NetConfProfile
 

Enumerations

enum  NetConfInterfaceTypeEnum {
  NET_CONF_INTERFACE_TYPE_WIFI = 0 ,
  NET_CONF_INTERFACE_TYPE_ETHERNET = 1
}
 
enum  NetConfEthCfgSpeedEnum {
  NET_CONF_ETH_CFG_SPEED_10M = 10 ,
  NET_CONF_ETH_CFG_SPEED_100M = 100
}
 
enum  NetConfEthCfgDuplexEnum {
  NET_CONF_ETH_CFG_DUPLEX_HALF = 1 ,
  NET_CONF_ETH_CFG_DUPLEX_FULL = 2
}
 
enum  NetConfEthCfgNegotiationEnum {
  NET_CONF_ETH_CFG_NEGOTIATION_MANUAL = 1 ,
  NET_CONF_ETH_CFG_NEGOTIATION_AUTO = 2
}
 
enum  NetConfIPv4Mode {
  NET_CONF_IPV4_MODE_DHCP = 0 ,
  NET_CONF_IPV4_MODE_MANUAL = 2
}
 
enum  NetConfWifiPrivacyModeEnum {
  NET_CONF_WIFI_PRIVACY_MODE_NONE = 0 ,
  NET_CONF_WIFI_PRIVACY_MODE_WEP = 1 ,
  NET_CONF_WIFI_PRIVACY_MODE_WPA2_PSK_TKIP = 3 ,
  NET_CONF_WIFI_PRIVACY_MODE_WPA_PSK_TKIP = 4 ,
  NET_CONF_WIFI_PRIVACY_MODE_WPA2_PSK_AES = 5 ,
  NET_CONF_WIFI_PRIVACY_MODE_WPA_PSK_AES = 6
}
 
enum  NetConfProxyAuthTypeEnum {
  NET_CONF_PROXY_AUTH_TYPE_NONE = 0 ,
  NET_CONF_PROXY_AUTH_TYPE_BASIC_AUTHENTICATION = 1
}
 
enum  NetConfProxyStatusEnum {
  NET_CONF_PROXY_DISABLED = 0 ,
  NET_CONF_PROXY_ENABLED = 1
}
 
enum  NetConfLinkStateEnum {
  NET_CONF_LINK_STATE_UP = 1 ,
  NET_CONF_LINK_STATE_DOWN = 2 ,
  NET_CONF_LINK_STATE_NEGOTIATE = 3
}
 
enum  NetConfOperStateEnum {
  NET_CONF_OPER_STATE_UP = 1 ,
  NET_CONF_OPER_STATE_DOWN = 2
}
 
enum  NetConfAdminStateEnum {
  NET_CONF_ADMIN_STATE_UP = 1 ,
  NET_CONF_ADMIN_STATE_DOWN = 2
}
 
enum  NetConfProfile {
  NET_CONF_PROFILE_0 = 0 ,
  NET_CONF_PROFILE_1 = 1 ,
  NET_CONF_PROFILE_2 = 2 ,
  NET_CONF_PROFILE_3 = 3 ,
  NET_CONF_PROFILE_4 = 4 ,
  NET_CONF_PROFILE_5 = 5
}
 

Functions

int netconf_init ()
 
int netconf_close ()
 
int netconf_delete_profile (NetConfProfile id)
 
int netconf_get_all_profile_state (NetConfAllProfileState *state)
 
int netconf_get_assigned_address (NetConfInterfaceType interface, uint32_t *assignedAddress)
 Returns the currently used IP address of the console if the given interface matches the used interface. More...
 
int netconf_get_assigned_dns (NetConfInterfaceType interface, uint32_t *dns1, uint32_t *dns2)
 Returns the currently used DNS of the console if the given interface matches the used interface. More...
 
int netconf_get_assigned_gateway (NetConfInterfaceType unk1, uint32_t *gateway)
 Returns the currently used gateway of the console if the given interface matches the used interface. More...
 
int netconf_get_assigned_subnet (NetConfInterfaceType unk1, uint32_t *subnet)
 Returns the currently used subnet of the console if the given interface matches the used interface. More...
 
int netconf_get_dns (NetConfInterfaceType unk1, uint32_t *dns1, uint32_t *dns2)
 Returns the manually set DNS servers of the loaded config if the given interface matches the used interface. More...
 
int netconf_get_eth_cfg (NetConfEthCfg *outCfg)
 
NetConfAdminState netconf_get_if_adminstate (NetConfInterfaceType interface)
 
int netconf_get_if_ipv4_info (NetConfIPv4Info *info)
 Returns the WIFI IPv4 Info of the loaded config. More...
 
int netconf_get_if_ipv4_info_ex (NetConfInterfaceType interface, NetConfIPv4Info *info)
 Returns the IPv4 Info of the loaded config for the given interface. More...
 
NetConfLinkState netconf_get_if_linkstate (NetConfInterfaceType interface)
 
int netconf_get_if_macaddr (NetConfInterfaceType interface, NetConfMACAddr *info)
 
NetConfOperState netconf_get_if_operstate (NetConfInterfaceType interface)
 
int netconf_get_ifstate (NetConfInterfaceType interface, NetConfIfState *ifState)
 
int netconf_get_interface_mtu (NetConfInterfaceType NetConfInterfaceType, uint32_t *mtu)
 
int netconf_get_last_wifi_link_error (uint32_t *lastError)
 
int netconf_get_profile_state (NetConfInterfaceType interface, uint32_t *profileState)
 
int netconf_get_proxy_config (NetConfProxyConfig *proxyConfig)
 
int SOGetProxyConfig (NetConfProxyConfig *config)
 
int netconf_get_running (NetConfCfg *running)
 Return the current NetConfCfg. More...
 
int netconf_get_startup_profile_id ()
 Gets the default profileId. More...
 
int netconf_get_valid_flags (NetConfValidFlags *validFlags)
 
int netconf_get_wifi_cfg (NetConfWifiConfig *wifiConfig)
 
int netconf_getopt (uint16_t unk1, NetConfOpt *buffer, uint32_t *bufferSize)
 Not implemented on IOSU side. More...
 
int netconf_nv_read (NetConfProfile profileId, NetConfCfg *data)
 Read a profile into memory without using it. More...
 
int netconf_nv_write (NetConfProfile profileId, NetConfCfg *data)
 Write a profile from buffer. More...
 
int netconf_nv_load (NetConfProfile profileId)
 Load a profile into memory and use it. More...
 
int netconf_nv_store (NetConfProfile profileId)
 Save the loaded profile from memory into a profile. More...
 
int netconf_read_aoss_config (NetConfProfile profileId, NetConfAOSSConfig *data)
 
int netconf_write_aoss_config (NetConfProfile profileId, NetConfAOSSConfig *data)
 
int netconf_read_compat_profile_id (uint32_t *outProfileId)
 
int netconf_set_dns (NetConfInterfaceType interface, uint32_t *dns1, uint32_t *dns2)
 
int netconf_set_eth_cfg (NetConfEthCfg *config)
 
int netconf_set_if_admin_state (NetConfInterfaceType interface, NetConfAdminStateEnum unk2)
 
int netconf_set_if_ipv4_info (NetConfIPv4Info *info)
 
int netconf_set_if_ipv4_info_ex (NetConfInterfaceType interface, NetConfIPv4Info *info)
 
int netconf_set_interface_mtu (NetConfInterfaceType interface, uint32_t mtu)
 
int netconf_set_proxy_config (NetConfProxyConfig *config)
 
int netconf_set_running (NetConfCfg *config)
 
int netconf_set_startup_profile_id (uint32_t profileId)
 Sets the default profileId. More...
 
int netconf_set_valid_flag (uint32_t unk1, uint32_t unk2)
 
int netconf_set_wifi_cfg (NetConfWifiConfig *config)
 
int netconf_setopt (uint16_t unk1, NetConfOpt *buffer, uint32_t *bufferSize)
 DEBUG mode only. More...
 
int netconf_write_compat_profile_id (uint32_t unk1)