David Decotigny 8f48fc01e9 udhcpc6: carry along length of packet when parsing it.
This is to avoid parsing garbage past packet's actual end.

Also const-ize params to a few functions.

function                                             old     new   delta
d6_run_script_no_option                                -      12     +12
option_to_env                                        791     798      +7
d6_run_script                                        253     255      +2
perform_d6_release                                    95      93      -2
udhcpc6_main                                        2596    2592      -4
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 2/2 up/down: 21/-6)              Total: 15 bytes

Signed-off-by: David Decotigny <ddecotig@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2018-05-24 18:34:56 +02:00
..
2018-05-14 11:11:08 +02:00
2018-05-14 11:11:08 +02:00
2018-01-16 22:23:38 +01:00
2018-05-14 10:46:00 +02:00
2018-05-14 11:11:08 +02:00
2017-06-28 19:18:17 +02:00
2018-05-14 11:11:08 +02:00
2018-01-08 10:14:17 +01:00