dns_init.c.svn-base

来自「域名解析器的实现」· SVN-BASE 代码 · 共 43 行

SVN-BASE
43
字号
/***************************************************************************************
 *		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.
 ***************************************************************************************
 */
 
/*
 * Initialization and shutdown code for DNS library.  All global and
 * static variables that aren't constants should be defined in this
 * file, so that they can be (re)initalized when dns_init() is called.
 */
#include <l3/inc/phase2.h>
#include <l3/ap/dnsr/h/dns.h>
#include <l3/ap/dnsr/h/dnsr_if.h>


/*------------------------------------------------------------------------
 * void  dnsr_init()
 * Purpose: initialize dnsr config
 *          
 * Parameters:
 *    Input:
 *    Output:
 * returns :
 *------------------------------------------------------------------------
 */
void dnsr_init(void)
{
    /* initialize cache */
    dns_gc_init();    
    /* initialize query db */
    dnsr_init_query_db();    
    /* intiialize static entry */
    dns_static_host_init();    
    /* restore EEPROM data to current database */
    DNSR_Restore_Config();
        
}    

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?