📄 la3_dnsr.h.svn-base
字号:
/***************************************************************************************
* Copyright c 2000 D-Link Corporation All rights reserved.
*
* This is unpublished proprietary source code of D-Link Corporation
*
* The copyright notice above does not evidence any actual or intended
* publication of such source code.
***************************************************************************************
*/
#ifndef __LA3_DNSR_H__
#define __LA3_DNSR_H__
/* INCLUDE FILE DECLARATIONS */
#include <l3/ap/dnsr/h/dnsr_db.h>
/* TYPE DECLARATION */
typedef struct
{
DNSR_DB_Static_Table_T S_Tab;
} LA3_Static_Table_T;
/*typedef struct
{
UI32_T server_addr[MAX_NAME_SERVER];
LA3_Static_Table_T static_table[MAX_STATIC_DNS_NUM];
UI8_T dns_status;
UI8_T cache_status;
UI8_T lookup_status;
} LA3_DNSR_GEN_T;*/
typedef struct
{
DNSR_DB_GEN_T global;
} LA3_DNSR_T;
/* EXPORTED SUBPROGRAM SPECIFICATIONS */
void LA3_DNSR_Init(void);
void LA3_DNSR_Terminate(void);
/*
*-----------------------------------------------------------------------------------------------------
* BOOLEAN_T LA3_DNSR_Set_Name_Server(LA3_DNSR_T *ptr)
* Purpose: This function sets the IP address of name servers in EEPROM.
* Params:
* Input: ptr The structure with name servers information to be
* set in EEPROM.
* Output: None
* Returns: BOOLEAN_T
* Notes: None
*-----------------------------------------------------------------------------------------------------
*/
BOOLEAN_T LA3_DNSR_Set_Name_Server(LA3_DNSR_T *ptr);
/*
*-----------------------------------------------------------------------------------------------------
* BOOLEAN_T LA3_DNSR_Get_Name_Server(LA3_DNSR_T *ptr)
* Purpose: This function gets the IP address of name servers in EEPROM.
* Params:
* Input: ptr The structure with name servers information to be
* retrieved from EEPROM.
* Output: None
* Returns: BOOLEAN_T
* Notes: None
*-----------------------------------------------------------------------------------------------------
*/
BOOLEAN_T LA3_DNSR_Get_Name_Server(LA3_DNSR_T *ptr);
/*
*-----------------------------------------------------------------------------------------------------
* BOOLEAN_T LA3_DNSR_Get_Status(void)
* Purpose: This function gets DNS Relay status in EEPROM.
* Params:
* Input: None
* Output: None
* Returns: BOOLEAN_T
* Notes: None
*-----------------------------------------------------------------------------------------------------
*/
BOOLEAN_T LA3_DNSR_Get_Status(void);
/*
*-----------------------------------------------------------------------------------------------------
* BOOLEAN_T LA3_DNSR_Enable(void)
* Purpose: This function enables DNS Relay in EEPROM.
* Params:
* Input: None
* Output: None
* Returns: BOOLEAN_T
* Notes: None
*-----------------------------------------------------------------------------------------------------
*/
BOOLEAN_T LA3_DNSR_Enable(void);
/*
*-----------------------------------------------------------------------------------------------------
* BOOLEAN_T LA3_DNSR_Disable(void)
* Purpose: This function disables DNS Relay in EEPROM.
* Params:
* Input: None
* Output: None
* Returns: BOOLEAN_T
* Notes: None
*-----------------------------------------------------------------------------------------------------
*/
BOOLEAN_T LA3_DNSR_Disable(void);
/*
*-----------------------------------------------------------------------------------------------------
* BOOLEAN_T LA3_DNSR_Get_Cache_Status(void)
* Purpose: This function gets cache lookup status in EEPROM.
* Params:
* Input: None
* Output: None
* Returns: BOOLEAN_T
* Notes: None
*-----------------------------------------------------------------------------------------------------
*/
BOOLEAN_T LA3_DNSR_Get_Cache_Status(void);
/*
*-----------------------------------------------------------------------------------------------------
* BOOLEAN_T LA3_DNSR_Cache_Enable(void)
* Purpose: This function enables cache lookup in EEPROM.
* Params:
* Input: None
* Output: None
* Returns: BOOLEAN_T
* Notes: None
*-----------------------------------------------------------------------------------------------------
*/
BOOLEAN_T LA3_DNSR_Cache_Enable(void);
/*
*-----------------------------------------------------------------------------------------------------
* BOOLEAN_T LA3_DNSR_Cache_Disable(void)
* Purpose: This function disables cache lookup in EEPROM.
* Params:
* Input: None
* Output: None
* Returns: BOOLEAN_T
* Notes: None
*-----------------------------------------------------------------------------------------------------
*/
BOOLEAN_T LA3_DNSR_Cache_Disable(void);
/*
*-----------------------------------------------------------------------------------------------------
* BOOLEAN_T LA3_DNSR_Get_Lookup_Status(void)
* Purpose: This function gets static lookup status in EEPROM.
* Params:
* Input: None
* Output: None
* Returns: BOOLEAN_T
* Notes: None
*-----------------------------------------------------------------------------------------------------
*/
BOOLEAN_T LA3_DNSR_Get_Lookup_Status(void);
/*
*-----------------------------------------------------------------------------------------------------
* BOOLEAN_T LA3_DNSR_Lookup_Enable(void)
* Purpose: This function enables static table lookup in EEPROM.
* Params:
* Input: None
* Output: None
* Returns: BOOLEAN_T
* Notes: None
*-----------------------------------------------------------------------------------------------------
*/
BOOLEAN_T LA3_DNSR_Lookup_Enable(void);
/*
*-----------------------------------------------------------------------------------------------------
* BOOLEAN_T LA3_DNSR_Lookup_Disable(void)
* Purpose: This function disables static table lookup in EEPROM.
* Params:
* Input: None
* Output: None
* Returns: BOOLEAN_T
* Notes: None
*-----------------------------------------------------------------------------------------------------
*/
BOOLEAN_T LA3_DNSR_Lookup_Disable(void);
/*------------------------------------------------------------------------
* BOOLEAN_T LA3_DNSR_Get_Static_Table_Entry
* Purpose: This function gets the static table entry in EEPROM.
* Parameters:
* Input : st The structure with static table information to be
* set in EEPROM.
* Output: LA3_Static_Table_T *st.
* returns : TRUE or FALSE.
*------------------------------------------------------------------------
*/
BOOLEAN_T LA3_DNSR_Get_Static_Table_Entry(LA3_Static_Table_T *st);
/*------------------------------------------------------------------------
* BOOLEAN_T LA3_DNSR_Set_Static_Table_Entry
* Purpose: This function sets the static table entry in EEPROM.
* Parameters:
* Input : st The structure with static table information to be
* set in EEPROM.
* Output: None.
* returns : TRUE or FALSE.
*------------------------------------------------------------------------
*/
BOOLEAN_T LA3_DNSR_Set_Static_Table_Entry(LA3_Static_Table_T *st);
/*------------------------------------------------------------------------
* BOOLEAN_T LA3_DNSR_Delete_Static_Table_Entry
* Purpose: This function delete the static table entry in EEPROM.
* Parameters:
* Input : st The structure with static table information to be
* set in EEPROM.
* Output: None.
* returns : TRUE or FALSE.
*------------------------------------------------------------------------
*/
BOOLEAN_T LA3_DNSR_Delete_Static_Table_Entry(LA3_Static_Table_T *st);
/*------------------------------------------------------------------------
* BOOLEAN_T LA3_DNSR_Get_Static_Table_PrevEntry
* Purpose: This function gets the static table previous entry in EEPROM.
* Parameters:
* Input : st The structure with static table information to be
* set in EEPROM.
* Output: LA3_Static_Table_T *st.
* returns : TRUE or FALSE.
*------------------------------------------------------------------------
*/
BOOLEAN_T LA3_DNSR_Get_Static_Table_PrevEntry(LA3_Static_Table_T *st);
/*------------------------------------------------------------------------
* BOOLEAN_T LA3_DNSR_Get_Static_Table_NextEntry
* Purpose: This function gets the static table next entry in EEPROM.
* Parameters:
* Input : st The structure with static table information to be
* set in EEPROM.
* Output: LA3_Static_Table_T *st.
* returns : TRUE or FALSE.
*------------------------------------------------------------------------
*/
BOOLEAN_T LA3_DNSR_Get_Static_Table_NextEntry(LA3_Static_Table_T *st);
/*------------------------------------------------------------------------
* BOOLEAN_T LA3_DNSR_Get_Static_Table_FirstEntry
* Purpose: This function gets the static table first entry in EEPROM.
* Parameters:
* Input : st The structure with static table information to be
* set in EEPROM.
* Output: LA3_Static_Table_T *st.
* returns : TRUE or FALSE.
*------------------------------------------------------------------------
*/
BOOLEAN_T LA3_DNSR_Get_Static_Table_FirstEntry(LA3_Static_Table_T *st);
/*------------------------------------------------------------------------
* BOOLEAN_T LA3_DNSR_Get_Num_of_ST_Entry(I8_T *num)
* Purpose: This function gets the number of static table entries in EEPROM.
* Parameters:
* returns : TRUE or FALSE.
*------------------------------------------------------------------------
*/
BOOLEAN_T LA3_DNSR_Get_Num_of_ST_Entry(I32_T *num);
/* End of DNS Relay Package */
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -