arpd, the userspace ARP daemon, passed away quietly in misc/. Born last century to Alexey Kuznetsov, it spent its youth answering kernel neighbour solicitations for networks too large for the in-kernel table, keeping its memories in a Berkeley DB file. In its final years its only visitors were tree-wide cleanups, who stopped by to add an SPDX tag and fix its whitespace. It outlived the problem it was built to solve, as neighbour tables grew up and learned to take care of themselves. arpd was predeceased by its lifelong companion libdb, which Fedora has already laid to rest; Debian is making arrangements. Unable to build without it, arpd chose to go with dignity rather than be kept alive on a bundled copy. It is survived by ip neigh, which does the job without a database. In lieu of flowers, please drop libdb from your build dependencies. Signed-off-by: Stephen Hemminger --- Makefile | 1 - README | 11 +- man/man8/arpd.8 | 69 ---- misc/.gitignore | 1 - misc/Makefile | 7 - misc/arpd.c | 841 ------------------------------------------------ 6 files changed, 2 insertions(+), 928 deletions(-) delete mode 100644 man/man8/arpd.8 delete mode 100644 misc/arpd.c diff --git a/Makefile b/Makefile index 6f5d4765..8f581a48 100644 --- a/Makefile +++ b/Makefile @@ -24,7 +24,6 @@ CONF_ETC_DIR?=/etc/iproute2 CONF_USR_DIR?=$(DATADIR)/iproute2 DOCDIR?=$(DATADIR)/doc/iproute2 MANDIR?=$(DATADIR)/man -ARPDDIR?=/var/lib/arpd KERNEL_INCLUDE?=/usr/include BASH_COMPDIR?=$(DATADIR)/bash-completion/completions diff --git a/README b/README index 6ddf6015..7b612870 100644 --- a/README +++ b/README @@ -27,21 +27,14 @@ Support (LTS) kernel version. How to compile this. -------------------- -1. libdbm -arpd needs to have the berkeleydb development libraries. For Debian -users this is the package with a name like libdbX.X-dev. -DBM_INCLUDE points to the directory with db_185.h which -is the include file used by arpd to get to the old format Berkeley -database routines. Often this is in the db-devel package. - -2. make +1. make The makefile will automatically build a config.mk file which contains definitions of libraries that may or may not be available on the system such as: ATM, ELF, MNL, and SELINUX. -3. include/uapi +2. include/uapi This package includes matching sanitized kernel headers because the build environment may not have up to date versions. See Makefile diff --git a/man/man8/arpd.8 b/man/man8/arpd.8 deleted file mode 100644 index 5050a98b..00000000 --- a/man/man8/arpd.8 +++ /dev/null @@ -1,69 +0,0 @@ -.TH ARPD 8 "28 June, 2007" - -.SH NAME -arpd \- userspace arp daemon. - -.SH SYNOPSIS -Usage: arpd [ -lkh? ] [ -a N ] [ -b dbase ] [ -B number ] [ -f file ] [-p interval ] [ -n time ] [ -R rate ] [ ] - -.SH DESCRIPTION -The -.B arpd -daemon collects gratuitous ARP information, saving it on local disk and feeding it to the kernel on demand to avoid redundant broadcasting due to limited size of the kernel ARP cache. - -.SH OPTIONS -.TP --h -? -Print help -.TP --l -Dump the arpd database to stdout and exit. The output consists of three columns: the interface index, the IP address of the interface, and the MAC address of the interface. Negative entries for dead hosts are also shown, in this case the MAC address is replaced by the word FAILED followed by a colon and the most recent time when the fact that the host is dead was proven. -.TP --f -Read and load an arpd database from FILE in a text format similar to that dumped by option -l. Exit after load, possibly listing resulting database, if option -l is also given. If FILE is -, stdin is read to get the ARP table. -.TP --b -the location of the database file. The default location is /var/lib/arpd/arpd.db -.TP --a -With this option, arpd not only passively listens for ARP packets on the interface, but also sends broadcast queries itself. NUMBER is the number of such queries to make before a destination is considered dead. When arpd is started as kernel helper (i.e. with app_solicit enabled in sysctl or even with option -k) without this option and still did not learn enough information, you can observe 1 second gaps in service. Not fatal, but not good. -.TP --k -Suppress sending broadcast queries by the kernel. This option only makes sense together with option -a. -.TP --n