udhcpc: remove code which requires server ID to be on local network
authorDenys Vlasenko <vda.linux@googlemail.com>
Thu, 21 Jun 2018 15:36:22 +0000 (17:36 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 21 Jun 2018 15:38:14 +0000 (17:38 +0200)
commit148788eb0ee96026105755cf3fd1ad3d94f49cd2
treeaa300fa3e844410b823b87ca759060b668ff5b80
parent6fb8bd795c3f40735ced3f51b8082f91956fd786
udhcpc: remove code which requires server ID to be on local network

This reverts "udhcpc: paranoia when using kernel UDP mode
for sending renew: server ID may be bogus".

Users complain that they do have servers behind routers
(with DHCP relays).

function                                             old     new   delta
send_packet                                          168     166      -2
bcast_or_ucast                                        25      23      -2
udhcp_send_kernel_packet                             301     295      -6
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-10)             Total: -10 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/udhcp/common.h
networking/udhcp/d6_dhcpc.c
networking/udhcp/dhcpc.c
networking/udhcp/dhcpd.c
networking/udhcp/packet.c