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

📄 readme.udhcpd

📁 准对嵌入式系统的DHCP源码包:udhcp较为稳定的版本,并且是学习的好东西
💻 UDHCPD
字号:
udhcp server (udhcpd)--------------------The only command line argument to udhcpd is an optional specifedconfig file. If no config file is specified, udhcpd uses the defaultconfig file, /etc/udhcpd.conf. Ex:udhcpd /etc/udhcpd.eth1.confThe udhcp server employs a number of simple config files:udhcpd.leases------------The udhcpd.leases behavior is designed for an embedded system. Thefile is written either every auto_time seconds, or when a SIGUSR1is received (the auto_time timer restarts if a SIGUSR1 is received). If you send a SIGTERM to udhcpd directly after a SIGUSR1, udhcpd willfinish writing the leases file and wait for the aftermentioned scriptto be executed and finish before quiting, so you do not need to sleepbetween sending signals. When the file is written, a script can beoptionally called to commit the file to flash. Lease times are storedin the file by time remaining in lease (for systems without clockthat works when there is no power), or by the absolute time that itexpires in seconds from epoch. In the remaining format, expired leasesare stored as zero. The file is of the format:16 byte MAC4 byte ip addressu32 expire time16 byte MAC4 byte ip addressu32 expire time.etc.example: hexdump udhcpd.leases0000000 1000 c95a 27d9 0000 0000 0000 0000 00000000010 a8c0 150a 0d00 2d29 5000 23fc 8566 00000000020 0000 0000 0000 0000 a8c0 140a 0d00 4e290000030udhcpd.conf----------The format is fairly simple, there is a sample file with all theavailable options and comments describing them in samples/udhcpd.confcompile time options-------------------	dhcpd.h contains the other two compile time options:		LEASE_TIME: The default lease time if not specified in the config	file.		DHCPD_CONFIG_FILE: The defualt config file to use.

⌨️ 快捷键说明

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