RDK-B
wan_hal.h File Reference
#include <stdint.h>
Include dependency graph for wan_hal.h:

Go to the source code of this file.

Data Structures

struct  _WAN_IPV4_CFG
 
struct  _WAN_IPV6_CFG
 
struct  _WAN_QOS_QUEUE
 
struct  _WAN_MAPT_CFG
 
struct  _SELFHEAL_CONFIG
 

Macros

#define RETURN_ERROR   1
 
#define RETURN_OK   0
 
#define BUFLEN_8   8
 
#define BUFLEN_32   32
 
#define BUFLEN_64   64
 

Typedefs

typedef struct _WAN_IPV4_CFG WAN_IPV4_CFG
 
typedef struct _WAN_IPV4_CFGPWAN_IPV4_CFG
 
typedef struct _WAN_IPV6_CFG WAN_IPV6_CFG
 
typedef struct _WAN_IPV6_CFGPWAN_IPV6_CFG
 
typedef struct _WAN_QOS_QUEUE WAN_QOS_QUEUE
 
typedef struct _WAN_QOS_QUEUEPWAN_QOS_QUEUE
 
typedef struct _WAN_MAPT_CFG WAN_MAPT_CFG
 
typedef struct _WAN_MAPT_CFGPWAN_MAPT_CFG
 
typedef struct _SELFHEAL_CONFIG SELFHEAL_CONFIG
 
typedef struct _SELFHEAL_CONFIGPSELFHEAL_CONFIG
 

Enumerations

enum  t_eWanMode { WAN_MODE_DISABLED = 1, WAN_MODE_DSL_ONLY = 2, WAN_MODE_ETH_ONLY = 3, WAN_MODE_AUTO = 4 }
 

Functions

int wan_hal_Init ()
 
int wan_hal_SetWanmode (t_eWanMode mode)
 
int wan_hal_SetWanConnectionEnable (unsigned int enable)
 
int wan_hal_SetSelfHealConfig (PSELFHEAL_CONFIG pSelfHealConfig)
 
int wan_hal_GetWanOEUpstreamCurrRate (unsigned int *pValue)
 
int wan_hal_GetWanOEDownstreamCurrRate (unsigned int *pValue)
 
int wan_hal_SetQoSConfiguration (PWAN_QOS_QUEUE pQueue, unsigned int QueueNumberOfEntries, const char *baseifname, const char *wanifname)
 
int wan_hal_ConfigureIpv4 (PWAN_IPV4_CFG pWanIpv4Cfg)
 
int wan_hal_UnConfigureIpv4 (PWAN_IPV4_CFG pWanIpv4Cfg)
 
int wan_hal_ConfigureIpv6 (PWAN_IPV6_CFG pWanIpv6Cfg)
 
int wan_hal_UnConfigureIpv6 (PWAN_IPV6_CFG pWanIpv6Cfg)
 
int wan_hal_EnableMapt (PWAN_MAPT_CFG pMAPTCfg)
 
int wan_hal_DisableMapt (const char *ifName)
 
int wan_hal_enableWanOEMode (const unsigned char enable)
 
int wan_hal_getAuthInfo (char *authInfo)