busybox/networking
Martin Lewis 9914d8b861 udhcpc: add support for long options
Duplicate options are currently overridden (only the last option is kept).
This leads to unexpected behavior when using long options.

The patch adds support for long options in compliance with RFC 3396.

Fixes #13136.

function                                             old     new   delta
udhcp_run_script                                     601     725    +124
optitem_unset_env_and_free                             -      38     +38
putenvp                                               46      59     +13
static.xmalloc_optname_optval                        718     717      -1
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 2/1 up/down: 175/-1)            Total: 174 bytes

Signed-off-by: Martin Lewis <martin.lewis.x84@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2020-08-13 16:48:07 +02:00
..
2020-06-23 03:13:55 +02:00
2013-01-14 01:34:48 +01:00
2018-12-28 03:20:17 +01:00
2014-01-09 20:09:43 +01:00
2016-03-04 07:36:04 +01:00
2018-12-28 03:20:17 +01:00
2018-12-28 03:20:17 +01:00
2019-10-25 13:41:31 +02:00
2019-01-10 20:18:02 +01:00
2019-01-01 15:40:43 +01:00
2019-01-01 15:40:43 +01:00
2019-01-01 15:40:43 +01:00
2018-11-25 16:17:26 +01:00
2019-10-25 13:39:41 +02:00
2018-12-28 03:20:17 +01:00
2018-12-28 03:20:17 +01:00