Bug 13136

Summary: Long static routes (longer than 255 bytes) are parsed incorrectly by udhcpc
Product: Busybox Reporter: Martin Lewis <martin.lewis.x84>
Component: NetworkingAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: busybox-cvs
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Host: Target:
Build:

Description Martin Lewis 2020-08-04 12:50:10 UTC
udhcpc supports the 'static-routes' option, which depends on long option support, because static routes may be longer than a single option.

According to RFC 3396, long options are split between multiple options with the same code. The current version of udhcpc allows duplicate option codes, but handles them incorrectly by parsing just the last occurrence of the option (instead of concatenating).

See https://lists.isc.org/pipermail/dhcp-users/2009-July/009879.html for a configuration example.
Comment 1 Denys Vlasenko 2020-08-14 22:42:32 UTC
Fixed in git.