Bug 13136 - Long static routes (longer than 255 bytes) are parsed incorrectly by udhcpc
Summary: Long static routes (longer than 255 bytes) are parsed incorrectly by udhcpc
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Networking (show other bugs)
Version: unspecified
Hardware: All All
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-04 12:50 UTC by Martin Lewis
Modified: 2020-08-14 22:42 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.