busybox/networking/udhcp
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
..
arpping.c dhcp: merge leases.c and static_leases.c into dhcpd.c 2016-10-04 00:56:58 +02:00
common.c udhcpc6: set -x options in request 2018-05-14 11:11:08 +02:00
common.h udhcpc6: set -x options in request 2018-05-14 11:11:08 +02:00
Config.src udhcpc6: --help fixes 2018-01-16 22:23:38 +01:00
d6_common.h udhcpc6: add DHCPv6 boot options 2018-05-14 10:46:00 +02:00
d6_dhcpc.c udhcpc6: carry along length of packet when parsing it. 2018-05-24 18:34:56 +02:00
d6_packet.c udhcpc[6]: make log2 messages for chaddr field indented like the rest 2017-09-29 18:02:01 +02:00
d6_socket.c ioctl(SIOCGIFINDEX) does not require clearing of entire ifr 2018-03-27 23:55:43 +02:00
dhcpc.c udhcpc6: set -x options in request 2018-05-14 11:11:08 +02:00
dhcpc.h udhcpc6: make -O OPT work 2017-06-28 19:18:17 +02:00
dhcpd.c udhcpc6: set -x options in request 2018-05-14 11:11:08 +02:00
dhcpd.h dhcp: merge leases.c and static_leases.c into dhcpd.c 2016-10-04 00:56:58 +02:00
dhcprelay.c dhcprelay: code shrink 2018-01-08 10:14:17 +01:00
domain_codec.c whitespace and comment format fixes, no code changes 2017-10-05 14:40:24 +02:00
dumpleases.c getopt32: remove opt_complementary 2017-08-08 21:55:02 +02:00
Kbuild.src fix breakage found by mass one-applet builds 2016-12-23 02:42:26 +01:00
packet.c udhcpc[6]: make log2 messages for chaddr field indented like the rest 2017-09-29 18:02:01 +02:00
signalpipe.c udhcpd: fix "not dying on SIGTERM" 2018-03-10 19:34:39 +01:00
socket.c udhcpc: downgrade "MAC X:X:X:X:X:X" message to log2 level 2017-07-24 13:37:38 +02:00