fd6ecc184d
On certain cloud platforms (Google Cloud, Packet.net and others) the DHCP server offers a /32 address. This makes adding the default route fail since it is not reachable via any interface. Linux's dhclient-script seem to usually have a special case for that and explicitly adds an interface route to the router's address. FreeBSD's dhclient-script already has a special case for when the router address is the same as the leased address. Now also add one for when it's a different address that doesn't fall in the interface's subnet. PR: 241792 Event: Aberdeen hackathon 2022 Submitted by: sigsys@gmail.com Reviewed by: dch, kp, bz (+1 on the idea, not reviewed), thj MFC after: 1 week |
||
---|---|---|
.. | ||
tests | ||
alloc.c | ||
bpf.c | ||
clparse.c | ||
conflex.c | ||
convert.c | ||
dhclient-script | ||
dhclient-script.8 | ||
dhclient.8 | ||
dhclient.c | ||
dhclient.conf | ||
dhclient.conf.5 | ||
dhclient.leases.5 | ||
dhcp-options.5 | ||
dhcp.h | ||
dhcpd.h | ||
dhctoken.h | ||
dispatch.c | ||
errwarn.c | ||
hash.c | ||
inet.c | ||
Makefile | ||
Makefile.depend | ||
Makefile.depend.options | ||
options.c | ||
packet.c | ||
parse.c | ||
privsep.c | ||
privsep.h | ||
tables.c | ||
tree.c | ||
tree.h |