busybox/networking/libiproute/Kbuild.src
Curt Brune 69934701fd networking: add 'ip neigh' command
This patch ports the 'ip neigh' command, originally written by Alexey
Kuznetsov, <kuznet@ms2.inr.ac.ru>, to busybox.

The base of the port is the version of iproute that shipped with
Debian Squeeze, taken from:

  http://http.debian.net/debian/pool/main/i/iproute/iproute_20100519.orig.tar.gz

This patch has actively been used by the Open Network Install
Environment (ONIE) project for over 3 years without incident.

function                                             old     new   delta
print_neigh                                            -     933    +933
ipneigh_list_or_flush                                  -     742    +742
get_hz                                                 -     109    +109
do_ipneigh                                             -      62     +62
do_iproute                                          2112    2153     +41
packed_usage                                       30647   30667     +20
ipneigh_main                                           -      14     +14
static.ip_neigh_commands                               -      12     +12
static.nuds                                            -       9      +9
static.ip_func_ptrs                                   32      36      +4
print_route                                         1858    1727    -131
------------------------------------------------------------------------------
(add/remove: 8/0 grow/shrink: 3/1 up/down: 1946/-131)        Total: 1815 bytes

Signed-off-by: Curt Brune <curt@cumulusnetworks.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2015-10-14 12:53:47 +02:00

75 lines
1.1 KiB
Plaintext

# Makefile for busybox
#
# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
#
# Licensed under GPLv2 or later, see file LICENSE in this source tree.
#
lib-y:=
INSERT
lib-$(CONFIG_SLATTACH) += \
utils.o
lib-$(CONFIG_IP) += \
ip_parse_common_args.o \
libnetlink.o \
ll_addr.o \
ll_map.o \
ll_proto.o \
ll_types.o \
rt_names.o \
rtm_map.o \
utils.o
lib-$(CONFIG_FEATURE_IP_ADDRESS) += \
ip_parse_common_args.o \
ipaddress.o \
libnetlink.o \
ll_addr.o \
ll_map.o \
ll_types.o \
rt_names.o \
utils.o
lib-$(CONFIG_FEATURE_IP_LINK) += \
ip_parse_common_args.o \
ipaddress.o \
iplink.o \
libnetlink.o \
ll_addr.o \
ll_map.o \
ll_types.o \
rt_names.o \
utils.o
lib-$(CONFIG_FEATURE_IP_ROUTE) += \
ip_parse_common_args.o \
iproute.o \
libnetlink.o \
ll_map.o \
rt_names.o \
rtm_map.o \
utils.o
lib-$(CONFIG_FEATURE_IP_TUNNEL) += \
ip_parse_common_args.o \
iptunnel.o \
rt_names.o \
utils.o
lib-$(CONFIG_FEATURE_IP_RULE) += \
ip_parse_common_args.o \
iprule.o \
rt_names.o \
utils.o
lib-$(CONFIG_FEATURE_IP_NEIGH) += \
ip_parse_common_args.o \
ipneigh.o \
libnetlink.o \
ll_map.o \
rt_names.o \
utils.o