openwrtv4/package/utils/busybox/patches
Adi Shammout e4259bed3f busybox: udhcpc: no MSG_DONTROUTE when sending packet
This reverts a change made in Sep 2017 [1] which introduced
MSG_DONTROUTE flag to prevent udhcpc from reaching out to servers on a
different subnet. That change violates RFC2131 by forcing fully
configured clients, who got their configurations through an offer
relayed by a DHCP relay, from renewing through a unicast request
directly to the DHCP server, resulting in the client resorting to
boradcasting lease extension requests instead of unicasting them,
further breaking RFC2131.

The problem with MSG_DONTROUTE appears when talking to a properly
configured DHCP server that rejects non-compliant requests. Such server
will reject lease extension attempts sent via broadcast rather than
unicast, as is the case with Finnish ISPs Telia and DNA as well as
Estonian ISP Starman. Once the lease expires without renewal, udhcpc
enters init mode, taking down the interfaces with it, and thus causing
interruption on every lease expiry. On some ISPs (such as the ones
mentioned above) that can be once every 10-20 minutes. The interruptions
appear in the logs as such:
----
udhcpc: sending renew to x.x.x.x
udhcpc: send: Network unreachable
udhcpc: sending renew to 0.0.0.0
udhcpc: sending renew to 0.0.0.0
...
udhcpc: lease lost, entering init state
Interface 'wan' has lost the connection
Interface 'wan' is now down
Network alias 'eth0' link is down
udhcpc: sending select for y.y.y.y
udhcpc: lease of y.y.y.y obtained, lease time 1200
Network alias 'eth0' link is up
Interface 'wan' is now up
----

During lease extension, a fully configured client should be able to
reach out to the server from which it recieved the lease for extension,
regardless in which network it is; that's up to the gateway to find. [2]
This patch ensures that.

[1]
http://lists.busybox.net/pipermail/busybox-cvs/2017-September/037402.html
[2]
https://www.netmanias.com/en/post/techdocs/6000/dhcp-network-protocol/
understanding-dhcp-relay-agents

Signed-off-by: Adi Shammout <adi.shammout@outlook.com>
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com> [PKG_RELEASE increase]
2018-06-07 21:44:04 +02:00
..
001-resource_h_include.patch busybox: update to version 1.25.0 2016-09-20 22:37:02 +02:00
100-trylink_bash.patch busybox: update to 1.22.1 2014-05-25 17:42:09 +00:00
101-gen_build_files_bash.patch busybox: update to 1.22.1 2014-05-25 17:42:09 +00:00
110-no_static_libgcc.patch busybox: update to 1.22.1 2014-05-25 17:42:09 +00:00
111-i386_no_arch_flags.patch busybox: remove i386-specific build flags 2018-03-12 12:49:03 +01:00
130-mconf_missing_sigwinch.patch busybox: update to 1.22.1 2014-05-25 17:42:09 +00:00
200-udhcpc_reduce_msgs.patch busybox: update to 1.28.2 2018-04-03 23:26:45 +02:00
201-udhcpc_changed_ifindex.patch busybox: update to 1.28.2 2018-04-03 23:26:45 +02:00
203-udhcpc_renew_no_deconfig.patch busybox: update to 1.28.2 2018-04-03 23:26:45 +02:00
204-udhcpc_no_msg_dontroute.patch busybox: udhcpc: no MSG_DONTROUTE when sending packet 2018-06-07 21:44:04 +02:00
210-add_netmsg_util.patch busybox: convert netmsg and lock applet to "new style" applet definition 2017-01-29 14:09:36 +01:00
220-add_lock_util.patch busybox: convert netmsg and lock applet to "new style" applet definition 2017-01-29 14:09:36 +01:00
230-add_nslookup_lede.patch busybox: update to 1.28.2 2018-04-03 23:26:45 +02:00
240-telnetd_intr.patch busybox: update to 1.26.2 2017-01-29 14:09:38 +01:00
250-date-k-flag.patch busybox: update to 1.28.2 2018-04-03 23:26:45 +02:00
270-libbb_make_unicode_printable.patch busybox: update to version 1.24.1 2015-10-30 15:18:17 +00:00
301-ip-link-fix-netlink-msg-size.patch busybox: update to 1.27.2 2017-08-30 22:34:41 +02:00
500-move-traceroute-applets-to-bin.patch busybox: clean up patch fuzz 2018-01-05 10:35:51 +01:00
510-move-passwd-applet-to-bin.patch busybox: update to 1.28.2 2018-04-03 23:26:45 +02:00