[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: Re: [PATCH 1/2] iproute: codeshrink netlink message length check
From: Bernhard Reutner-Fischer <rep.dot.nop () gmail ! com>
Date: 2019-11-13 17:55:09
Message-ID: 0D8A17AA-963E-4828-B986-8939284C9AB4 () gmail ! com
[Download RAW message or body]
On 12 November 2019 12:04:24 CET, Natanael Copa <ncopa@alpinelinux.org> wrote:
>reduce size by de-duplicate netlink message length check
>
>function old new
>delta
>check_nlmsg_len - 22
>+22
>print_route 1901 1893
>-8
>print_neigh 1082 1073
>-9
>iproute_get 889 880
>-9
>.rodata 139741 139723
>-18
>------------------------------------------------------------------------------
>(add/remove: 1/0 grow/shrink: 0/4 up/down: 22/-44) Total:
>-22
>bytes
> text data bss dec hex filename
> 876539 15636 2080 894255 da52f busybox_old
> 876517 15636 2080 894233 da519 busybox_unstripped
>---
> networking/libiproute/ip_common.h | 1 +
> networking/libiproute/ipneigh.c | 4 +---
> networking/libiproute/iproute.c | 14 +++++++++-----
> 3 files changed, 11 insertions(+), 8 deletions(-)
>
>diff --git a/networking/libiproute/ip_common.h
>b/networking/libiproute/ip_common.h
>index 40171bed9..9f7f927c7 100644
>--- a/networking/libiproute/ip_common.h
>+++ b/networking/libiproute/ip_common.h
>@@ -30,6 +30,7 @@ int FAST_FUNC do_iplink(char **argv);
> //int FAST_FUNC do_ipmonitor(char **argv);
> //int FAST_FUNC do_multiaddr(char **argv);
> //int FAST_FUNC do_multiroute(char **argv);
>+int FAST_FUNC check_nlmsg_len(int len);
void ?
TIA,
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic