summaryrefslogtreecommitdiff
path: root/networking/ssl_helper-wolfssl
diff options
context:
space:
mode:
authorRussell Senior2021-03-15 22:42:43 -0700
committerDenys Vlasenko2021-03-16 11:40:19 +0100
commit1c461df70ab357dc9e1e064540731c58e7859a45 (patch)
treed2308f480013701e3abb19584244525f89bca66d /networking/ssl_helper-wolfssl
parentf26e5634b161e58f56b072f6e703f262e723a80d (diff)
downloadbusybox-1c461df70ab357dc9e1e064540731c58e7859a45.zip
busybox-1c461df70ab357dc9e1e064540731c58e7859a45.tar.gz
udhcpc: ignore zero-length DHCP options
Discovered that the DHCP server on a TrendNet router (unknown model) provides a zero-length option 12 (Host Name) in the DHCP ACK message. This has the effect of causing udhcpc to drop the rest of the options, including option 51 (IP Address Lease Time), 3 (Router), and 6 (Domain Name Server), most importantly leaving the OpenWrt device with no default gateway. The TrendNet behavior violates RFC 2132, which in Section 3.14 declares that option 12 has a minimum length of 1 octet. It is perhaps not a cosmic coincidence that I found this behavior on Pi Day. This patch allows zero length options without bailing out, by simply skipping them. function old new delta udhcp_scan_options 183 172 -11 Signed-off-by: Russell Senior <russell@personaltelco.net> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/ssl_helper-wolfssl')
0 files changed, 0 insertions, 0 deletions