⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dns_relay.h

📁 DNS 的实现代码
💻 H
字号:
/* ############################################################################ (c) Copyright Virata Limited 2002## Virata Limited Confidential and Proprietary## The following software source code ("Software") is strictly confidential and# is proprietary to Virata Limited ("Virata").  It may only be read, used,# copied, adapted, modified or otherwise dealt with by you if you have# entered into a confidentiality agreement with Virata and then subject to the# terms of that confidentiality agreement and any other applicable agreement# between you and Virata.  If you are in any doubt as to whether you are # entitled to access, read, use, copy, adapt, modify or otherwise deal with# the Software or whether you are entitled to disclose the Software to any# other person you should contact Virata.  If you have not entered into a# confidentiality agreement with Virata granting access to this Software you# should forthwith return all media, copies and printed listings containing# the Software to Virata. ## Virata reserves the right to take legal action against you should you breach# the above provisions.## If you are unsure, or to report violations, please contact # support@virata.com# ##########################################################################*//* * file:  dns_relay.h * * description:  this file contains prototypes and declarations for using *               dns relay routines. */#ifndef _DNS_RELAY_H#define _DNS_RELAY_H #ifdef __cplusplusextern "C" {#endif/* How many DNS server addesses can we hold? per LIST (manual and PPP/DHCP) */#define DNS_RELAY_MAX_SERVERS    (2)	/*Total DNS servers ( both Manual and PPP/DHCP) */#define DNS_RELAY_TOTAL_SERVERS  ( 2*DNS_RELAY_MAX_SERVERS )#define MANUALLY_CONFIGURED_DNS_SERVER  1#define DHCP_CONFIGURED_DNS_SERVER      2 #define PPP_CONFIGURED_DNS_SERVER       3/*********************************************************************//*Enable any of these TWO below hashdefs to assign the priority to theserver list processing*//**********************************************************************/#define MANUAL_CONFIGURED_SERVER_PRIORITY 1/*#define EXTERNAL_CONFIGURED_SERVER_PRIORITY 1*//*  * dns relay local host structure. * * this structure contains the information to insert data into the lan  * database. */struct dns_host {    char           hname[DNS_NAMEMAX+1]; /* host name */    char           **alist;              /* list of aliases, none longer than DNS_NAMEMAX */    int            nalias;               /* number of aliases in the list */     unsigned long  *ipaddrs;             /* list of IP addresses for this host */     int            naddr;                /* number of the IP addresses in the list */     BOOL           is_ipv6;            /* whether entry to be inserted is for IPv6 or IPv4 host */};extern int dns_relay_set_v6_server( struct in6_addr *sDNSserver1, struct in6_addr *sDNSserver2);#ifdef __cplusplus}#endif#endif

⌨️ 快捷键说明

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