freebsd-nq/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 bpf: Add an ioctl to set the VLAN Priority on packets sent by bpf 2021-07-26 23:13:31 +02:00
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 bpf: Add an ioctl to set the VLAN Priority on packets sent by bpf 2021-07-26 23:13:31 +02:00
dhclient.leases.5 dhclient(8): Bugfixes for some issues reported by mandoc 2020-10-03 18:42:15 +00:00
dhcp-options.5 dhclient(8): Bugfixes for some issues reported by mandoc 2020-10-03 18:42:15 +00:00
dhcp.h
dhcpd.h bpf: Add an ioctl to set the VLAN Priority on packets sent by bpf 2021-07-26 23:13:31 +02:00
dhctoken.h bpf: Add an ioctl to set the VLAN Priority on packets sent by bpf 2021-07-26 23:13:31 +02:00
dispatch.c dhclient: Fix a logic bug remove_protocol(). 2020-06-04 16:24:13 +00:00
errwarn.c
hash.c
inet.c
Makefile
Makefile.depend Update Makefile.depend files 2019-12-11 17:37:53 +00:00
Makefile.depend.options Add Makefile.depend.options 2019-12-11 17:37:37 +00:00
options.c dhclient: improve error handling parsing option 119 2020-08-31 15:55:29 +00:00
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