资源简介
DHCP-4.2.1.tar.gz Linux 文件
代码片段和文件信息
/* clparse.c
Parser for dhclient config and lease files... */
/*
* Copyright (c) 2004-2010 by Internet Systems Consortium Inc. (“ISC“)
* Copyright (c) 1996-2003 by Internet Software Consortium
*
* Permission to use copy modify and distribute this software for any
* purpose with or without fee is hereby granted provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED “AS IS“ AND ISC DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR
* ANY SPECIAL DIRECT INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE DATA OR PROFITS WHETHER IN AN
* ACTION OF CONTRACT NEGLIGENCE OR OTHER TORTIOUS ACTION ARISING OUT
* OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
* Internet Systems Consortium Inc.
* 950 Charter Street
* Redwood City CA 94063
*
* https://www.isc.org/
*
* This software has been written for Internet Systems Consortium
* by Ted Lemon in cooperation with Vixie Enterprises and Nominum Inc.
* To learn more about Internet Systems Consortium see
* ‘‘https://www.isc.org/‘‘. To learn more about Vixie Enterprises
* see ‘‘http://www.vix.com‘‘. To learn more about Nominum Inc. see
* ‘‘http://www.nominum.com‘‘.
*/
#include “dhcpd.h“
#include
struct client_config top_level_config;
#define NUM_DEFAULT_REQUESTED_OPTS 9
struct option *default_requested_options[NUM_DEFAULT_REQUESTED_OPTS + 1];
static void parse_client_default_duid(struct parse *cfile);
static void parse_client6_lease_statement(struct parse *cfile);
#ifdef DHCPv6
static struct dhc6_ia *parse_client6_ia_na_statement(struct parse *cfile);
static struct dhc6_ia *parse_client6_ia_ta_statement(struct parse *cfile);
static struct dhc6_ia *parse_client6_ia_pd_statement(struct parse *cfile);
static struct dhc6_addr *parse_client6_iaaddr_statement(struct parse *cfile);
static struct dhc6_addr *parse_client6_iaprefix_statement(struct parse *cfile);
#endif /* DHCPv6 */
/* client-conf-file :== client-declarations END_OF_FILE
client-declarations :==
| client-declaration
| client-declarations client-declaration */
isc_result_t read_client_conf ()
{
struct client_config *config;
struct interface_info *ip;
struct parse *parse;
isc_result_t status;
unsigned code;
/* Initialize the default request list. */
memset(default_requested_options 0 sizeof(default_requested_options));
/* 1 */
code = DHO_SUBNET_MASK;
option_code_hash_lookup(&default_requested_options[0]
dhcp_universe.code_hash &code 0 MDL);
/* 2 */
code = DHO_BROADCAST_ADDRESS;
option_code_hash_lookup(&default_requested_options[1]
dhcp_universe.code_hash &code 0 MDL);
/* 3 */
code = DHO_TIME_OFFSET;
option_code_hash_lookup(&default_requested_options[2]
dhcp_universe.code_hash &c
- 上一篇:液压元件CAD图库
- 下一篇:TTL74系列IC.SCHLIB
相关资源
- linux dhcpddhcp-4.2.5源代码
- 基于STM32F4系列MCU利用W5500模块实现的
- ubuntu 16.04LS 上WEB/DHCP/DNS的搭建
- H3C 综合实验VRRP+DHCP+RSTP综合实验
- 北邮计通网实验三DNS DHCP服务
- STM32F407+FreeRTOS+LAN8720+LWIP1.4.1+DHCP+UDP+标
- STM32F407+FreeRTOS+LAN8720+LWIP1.4.1+DHCP+标准
- 华为路由器vlan ospf rip static 单臂 多臂
- 实验:利用Wireshark分析DHCP协议
- 网络DHCP探测器
- Linux DHCP图形化管理工具
- linux下dhcp软件包
- DHCP snooping代码
- 利用Packet Tracer验证WWW、FTP、DNS、DHC
- linux下dhcp安装包
- linux系统DHCP软件包
- linux中各种服务器搭建
- Linux-webmin-DHCP教程
- DHCP服务软件
- DHCP服务器检测软件
- DNS FTP WEB WINS DHCP服务器的配置与管理
- 简易DHCP工具
- windows DHCP服务安装包
- DHCP+PXE+NFS+Kickstart全自动系统安装
- 最小的DHCP服务器软件dhcpsrv1.7.rar
- Linux系统下dhcp源码
- haneWIN DHCP Server V3.13汉化注册版2014.4更
- STM32F1_W5500.zip
- 3.Cisco小实验 VLAN、VTP、DHCP、OSPF、NA
- DHCP源代码-4.2.8
评论
共有 条评论