wok rev 18003

busybox: update udhcpd.conf
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Apr 26 11:53:17 2015 +0200 (2015-04-26)
parents f0deba3de1ee
children ac769de6c7c1
files busybox/stuff/inetd.conf busybox/stuff/udhcpd.conf
line diff
     1.1 --- a/busybox/stuff/inetd.conf	Sat Apr 25 23:32:23 2015 +0200
     1.2 +++ b/busybox/stuff/inetd.conf	Sun Apr 26 11:53:17 2015 +0200
     1.3 @@ -27,7 +27,7 @@
     1.4  # These are standard services.
     1.5  #
     1.6  tftp	dgram	udp	wait	root	tftpd	tftpd -r /boot
     1.7 -#systat	stream	tcp	nowait	nobody	ps
     1.8 +#systat	stream	tcp	nowait	nobody	ps -auwwx
     1.9  #netstat	stream	tcp	nowait	root	netstat	netstat	-a
    1.10  #http	stream	tcp	nowait	root	httpd	httpd	-i -u 80:80
    1.11  #ftp	stream	tcp	nowait	root	ftpd	ftpd	-w /home/ftp
     2.1 --- a/busybox/stuff/udhcpd.conf	Sat Apr 25 23:32:23 2015 +0200
     2.2 +++ b/busybox/stuff/udhcpd.conf	Sun Apr 26 11:53:17 2015 +0200
     2.3 @@ -2,67 +2,114 @@
     2.4  #
     2.5  
     2.6  # The start and end of the IP lease block
     2.7 -start           192.168.0.20    #default: 192.168.0.20
     2.8 -end             192.168.0.254   #default: 192.168.0.254
     2.9 +start		192.168.0.20	#default: 192.168.0.20
    2.10 +end		192.168.0.254	#default: 192.168.0.254
    2.11  
    2.12  # The interface that udhcpd will use
    2.13 -interface       eth0            #default: eth0
    2.14 +interface	eth0		#default: eth0
    2.15  
    2.16 -# The maximum number of leases (includes addressesd reserved
    2.17 -# by OFFER's, DECLINE's, and ARP conficts
    2.18 -#max_leases     254             #default: 254
    2.19 +# The maximum number of leases (includes addresses reserved
    2.20 +# by OFFER's, DECLINE's, and ARP conflicts). Will be corrected
    2.21 +# if it's bigger than IP lease block, but it ok to make it
    2.22 +# smaller than lease block.
    2.23 +#max_leases	254		#default: 254
    2.24  
    2.25 -# The amount of time that an IP will be reserved (leased) for if a
    2.26 -# DHCP decline message is received (seconds).
    2.27 -#decline_time   3600            #default: 3600 (1 hour)
    2.28 +# The amount of time that an IP will be reserved (leased to nobody)
    2.29 +# if a DHCP decline message is received (seconds)
    2.30 +#decline_time	3600		#default: 3600 (1 hour)
    2.31  
    2.32 -# The amount of time that an IP will be reserved (leased) for if an
    2.33 -# ARP conflct occurs. (seconds
    2.34 -#conflict_time  3600            #default: 3600 (1 hour)
    2.35 +# The amount of time that an IP will be reserved
    2.36 +# if an ARP conflict occurs (seconds)
    2.37 +#conflict_time	3600		#default: 3600 (1 hour)
    2.38  
    2.39 -# How long an offered address is reserved (leased) in seconds
    2.40 -#offer_time     60              #default: 60 (1 minute)
    2.41 +# How long an offered address is reserved (seconds)
    2.42 +#offer_time	60		#default: 60 (1 minute)
    2.43  
    2.44 -# If a lease to be given is below this value, the full lease time is
    2.45 -# instead used (seconds).
    2.46 -#min_lease      60              #defult: 60
    2.47 +# If client asks for lease below this value, it will be rounded up
    2.48 +# to this value (seconds)
    2.49 +#min_lease	60		#default: 60 (1 minute)
    2.50  
    2.51  # The location of the leases file
    2.52 -lease_file     /var/lib/udhcpd.leases     #default: /var/lib/misc/udhcpd.leases
    2.53 +lease_file	/var/lib/udhcpd.leases	#default: /var/lib/misc/udhcpd.leases
    2.54  
    2.55  # The location of the pid file
    2.56 -pidfile        /var/run/udhcpd.pid     #default: /var/run/udhcpd.pid
    2.57 +pidfile	/var/run/udhcpd.pid	#default: /var/run/udhcpd.pid
    2.58  
    2.59 -# The remainer of options are DHCP options and can be specifed with the
    2.60 +# The time period at which udhcpd will write out leases file.
    2.61 +# If this is 0, udhcpd will never automatically write leases file.
    2.62 +# Specified in seconds.
    2.63 +#auto_time	7200
    2.64 +
    2.65 +# Every time udhcpd writes a leases file, the below script will be called
    2.66 +#notify_file			# default: no script
    2.67 +#notify_file	dumpleases	# useful for debugging
    2.68 +
    2.69 +# The following are bootp specific options
    2.70 +# next server to use in bootstrap
    2.71 +#siaddr		192.168.0.22	# default: 0.0.0.0 (none)
    2.72 +# tftp server name
    2.73 +#sname		zorak		# default: none
    2.74 +# tftp file to download (e.g. kernel image)
    2.75 +#boot_file	/var/nfs_root	# default: none
    2.76 +
    2.77 +# Static leases map
    2.78 +#static_lease 00:60:08:11:CE:4E 192.168.0.54
    2.79 +#static_lease 00:60:08:11:CE:3E 192.168.0.44
    2.80 +
    2.81 +# The remainder of options are DHCP options and can be specified with the
    2.82  # keyword 'opt' or 'option'. If an option can take multiple items, such
    2.83  # as the dns option, they can be listed on the same line, or multiple
    2.84 -# lines. The only option with a default is 'lease'.
    2.85 +# lines.
    2.86 +# Examples:
    2.87 +#opt	dns	192.168.10.2 192.168.10.10
    2.88 +option	subnet	255.255.255.0
    2.89 +#opt	router	192.168.10.2
    2.90 +#opt	wins	192.168.10.10
    2.91 +#option	dns	129.219.13.81	# appended to above DNS servers for a total of 3
    2.92 +#option	domain	local
    2.93 +option	lease	864000		# default: 10 days
    2.94 +#option	msstaticroutes	10.0.0.0/8 10.127.0.1		# single static route
    2.95 +#option	staticroutes	10.0.0.0/8 10.127.0.1, 10.11.12.0/24 10.11.12.1
    2.96 +# Arbitrary option in hex form:
    2.97 +#option	0x08	01020304	# option 8: "cookie server IP addr: 1.2.3.4"
    2.98  
    2.99 -#Examples
   2.100 -#opt     dns     192.168.10.2 192.168.10.10
   2.101 -option  subnet  255.255.255.0
   2.102 -#option  dns     129.219.13.81   # appened to above DNS servers for a total of 3
   2.103 -option  lease   864000          # 10 days of seconds
   2.104 -
   2.105 -# Currently supported options
   2.106 -#opt subnet
   2.107 -#opt timezone
   2.108 -#opt router
   2.109 -#opt timesrv
   2.110 -#opt namesrv
   2.111 -#opt dns
   2.112 -#opt logsrv
   2.113 -#opt cookiesrv
   2.114 -#opt lprsrv
   2.115 -#opt bootsize
   2.116 -#opt domain
   2.117 -#opt swapsrv
   2.118 -#opt rootpath
   2.119 -#opt ipttl
   2.120 -#opt mtu
   2.121 -#opt broadcast
   2.122 -#opt wins
   2.123 -#opt lease
   2.124 -#opt ntpsrv
   2.125 -#opt tftp
   2.126 -#opt bootfile
   2.127 +# Currently supported options (for more info, see options.c):
   2.128 +#opt lease      NUM
   2.129 +#opt subnet     IP
   2.130 +#opt broadcast  IP
   2.131 +#opt router     IP_LIST
   2.132 +#opt ipttl      NUM
   2.133 +#opt mtu        NUM
   2.134 +#opt hostname   STRING		# client's hostname
   2.135 +#opt domain     STRING		# client's domain suffix
   2.136 +#opt search     STRING_LIST	# search domains
   2.137 +#opt nisdomain  STRING
   2.138 +#opt timezone   NUM		# (localtime - UTC_time) in seconds. signed
   2.139 +#opt tftp       STRING		# tftp server name
   2.140 +#opt bootfile   STRING		# tftp file to download (e.g. kernel image)
   2.141 +#opt bootsize   NUM		# size of that file
   2.142 +#opt rootpath   STRING		# (NFS) path to mount as root fs
   2.143 +#opt wpad       STRING
   2.144 +#opt serverid   IP		# default: server's IP
   2.145 +#opt message    STRING		# error message (udhcpd sends it on success too)
   2.146 +#opt vlanid     NUM		# 802.1P VLAN ID
   2.147 +#opt vlanpriority NUM		# 802.1Q VLAN priority
   2.148 +# Options specifying server(s)
   2.149 +#opt dns        IP_LIST
   2.150 +#opt wins       IP_LIST
   2.151 +#opt nissrv     IP_LIST
   2.152 +#opt ntpsrv     IP_LIST
   2.153 +#opt lprsrv     IP_LIST
   2.154 +#opt swapsrv    IP
   2.155 +# Options specifying routes
   2.156 +#opt routes     IP_PAIR_LIST
   2.157 +#opt staticroutes   STATIC_ROUTES # RFC 3442 classless static route option
   2.158 +#opt msstaticroutes STATIC_ROUTES # same, using MS option number
   2.159 +# Obsolete options, no longer supported
   2.160 +#opt logsrv     IP_LIST	# 704/UDP log server (not syslog!)
   2.161 +#opt namesrv    IP_LIST	# IEN 116 name server, obsolete (August 1979!!!)
   2.162 +#opt cookiesrv  IP_LIST	# RFC 865 "quote of the day" server, rarely (never?) used
   2.163 +#opt timesrv    IP_LIST	# RFC 868 time server, rarely (never?) used
   2.164 +# TODO: in development
   2.165 +#opt userclass  STRING		# RFC 3004. set of LASCII strings. "I am a printer" etc
   2.166 +#opt sipserv    STRING LIST	# RFC 3361. flag byte, then: 0: domain names, 1: IP addrs