1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-01 08:27:59 +00:00
freebsd/sbin/dhclient
Kristof Provost fd6ecc184d dhclient-script: cope with /32 address leases
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
2022-10-05 12:24:31 +02:00
..
tests dhclient: fix pcp:pcp cleanup failure 2022-06-17 09:10:52 +02:00
alloc.c
bpf.c dhclient: support VID 0 (no vlan) decapsulation 2022-02-14 10:06:47 -05:00
clparse.c dhclient: skip_to_semi() consumes semicolon already 2021-08-19 09:11:38 -04:00
conflex.c
convert.c
dhclient-script dhclient-script: cope with /32 address leases 2022-10-05 12:24:31 +02:00
dhclient-script.8
dhclient.8
dhclient.c dhclient: support supersede statement for option 54 2021-08-18 10:15:28 -07:00
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 dhclient: support VID 0 (no vlan) decapsulation 2022-02-14 10:06:47 -05:00
parse.c
privsep.c
privsep.h
tables.c
tree.c
tree.h