busybox/networking/udhcp
Seth David Schoen 5a3d3b8055 udhcpd: don't hardcode treating .0 and .255 specially
Even following current Internet standards, it can be perfectly
legitimate to issue IPv4 addresses that end in .0 or .255 via DHCP --
this can happen whenever the network is larger than /8.  For example,
10.3.4.0 and 10.3.4.255 are legitimate host addresses in 10/8 or 10.3/16.
(We also want to be able to issue .0 addresses in smaller networks
following our proposed kernel patch and standards changes.)

This behavior is already fully controllable by the user, simply by
setting start_ip and end_ip correctly.  Users who don't want to issue
.0 or .255 should set start_ip greater than .0 or end_ip less than .255
and udhcpd will already respect these bounds.  (This is also the case
for other DHCP servers -- the recommended example configurations will
default to a lower bound starting with .1 or some other value, which is
typically appropriate, but the user is still allowed to change this to
.0 -- or to a range that overlaps a .0 or .255 address -- if so desired.)

Signed-off-by: Seth David Schoen <schoen@loyalty.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2021-06-03 20:30:13 +02:00
..
arpping.c udhcp: shrink arpping() 2021-06-03 11:32:40 +02:00
common.c udhcp: convert log1s() macro to function 2021-06-03 11:12:20 +02:00
common.h udhcp: convert log1s() macro to function 2021-06-03 11:12:20 +02:00
Config.src udhcpc: Add support to change default interface name 2021-01-01 19:08:28 +01:00
d6_common.h udhcpc6: code shrink - sending functions do not need ifindex parameter 2020-12-15 21:55:15 +01:00
d6_dhcpc.c udhcpc[6]: on SIGUSR1, do not go from rebind to renew state 2021-06-03 16:22:35 +02:00
d6_packet.c udhcpc: improve logs - show offer as it is received 2021-06-02 19:51:52 +02:00
d6_socket.c libbb: reduce the overhead of single parameter bb_error_msg() calls 2019-07-02 11:35:03 +02:00
dhcpc.c udhcpc[6]: on SIGUSR1, do not go from rebind to renew state 2021-06-03 16:22:35 +02:00
dhcpc.h udhcpc: get rid of client_data.fqdn field 2021-06-02 15:51:50 +02:00
dhcpd.c udhcpd: don't hardcode treating .0 and .255 specially 2021-06-03 20:30:13 +02:00
dhcpd.h udhcp: rename server_config to server_data 2019-05-30 16:23:34 +02:00
dhcprelay.c libbb: reduce the overhead of single parameter bb_error_msg() calls 2019-07-02 11:35:03 +02:00
domain_codec.c domain_codec: optimize dname_dec and convert_dname 2020-07-12 21:19:13 +02:00
dumpleases.c libbb: introduce and use fputs_stdout 2021-02-03 20:52:40 +01:00
Kbuild.src
packet.c udhcpc: improve logs - show offer as it is received 2021-06-02 19:51:52 +02:00
signalpipe.c fix gcc-11.0 warnings 2021-04-14 17:52:18 +02:00
socket.c udhcpc[6]: remove superfluous "created raw socket" log message 2021-06-02 20:23:43 +02:00