arping: move packet buffer, sigset and struct ifreq to malloced "globals"
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 11 Feb 2018 13:35:05 +0000 (14:35 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 11 Feb 2018 13:35:46 +0000 (14:35 +0100)
commitd3162773d5c722cc1f5c5b1ea5171c8d3c208135
treed2415fb7c76cc23e425967744e1a330be93cbf76
parente015d0659fd3039c321b179190834c7e5909522a
arping: move packet buffer, sigset and struct ifreq to malloced "globals"

This way, we can zero them all in one go.
We do malloc() anyway, thus nothing is lost by mallocing "globals"

function                                             old     new   delta
arping_main                                         1683    1686      +3
finish                                               100      86     -14
catcher                                              350     310     -40
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/2 up/down: 3/-54)             Total: -51 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/arping.c