Skip to contentSkip to conversation

arpd: remove

PATCH Applied Stephen Hemminger 2 participants 2 messages Nov 8 – Nov 18

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 arpd: remove

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.

---
v2 - claude review found some more dead bits to remove

 Makefile        |   5 -
 README          |  11 +-
 configure       |  23 --
 man/man8/arpd.8 |  69 ----
 misc/.gitignore |   1 -
 misc/Makefile   |   7 -
 misc/arpd.c     | 841 ------------------------------------------------
 7 files changed, 2 insertions(+), 955 deletions(-)
 delete mode 100644 man/man8/arpd.8
 delete mode 100644 misc/arpd.c
Makefile +0 -5
index 6f5d4765..6e4e6a85 100644
@@ -24,13 +24,9 @@ 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
 
-# Path to db_185.h include
-DBM_INCLUDE:=$(DESTDIR)/usr/include
-
 SHARED_LIBS = y
 
 DEFINES= -DRESOLVE_HOSTNAMES -DLIBDIR=\"$(LIBDIR)\"
@@ -42,7 +38,6 @@ DEFINES+=-DCONF_USR_DIR=\"$(CONF_USR_DIR)\" \
          -DCONF_ETC_DIR=\"$(CONF_ETC_DIR)\" \
          -DNETNS_RUN_DIR=\"$(NETNS_RUN_DIR)\" \
          -DNETNS_ETC_DIR=\"$(NETNS_ETC_DIR)\" \
-         -DARPDDIR=\"$(ARPDDIR)\" \
          -DCONF_COLOR=$(CONF_COLOR)
 
 #options for mpls
README +2 -9
index 6ddf6015..7b612870 100644
@@ -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
configure +0 -23
index ebc0d97a..e0820857 100755
@@ -401,26 +401,6 @@ check_mnl()
 	fi
 }
 
-check_berkeley_db()
-{
-    cat >$TMPDIR/dbtest.c <<EOF
-#include <fcntl.h>
-#include <stdlib.h>
-#include <db_185.h>
-int main(int argc, char **argv) {
-	dbopen("/tmp/xxx_test_db.db", O_CREAT|O_RDWR, 0644, DB_HASH, NULL);
-	return 0;
-}
-EOF
-    if $CC -I$INCLUDE -o $TMPDIR/dbtest $TMPDIR/dbtest.c -ldb >/dev/null 2>&1; then
-	echo "HAVE_BERKELEY_DB:=y" >>$CONFIG
-	echo "yes"
-    else
-	echo "no"
-    fi
-    rm -f $TMPDIR/dbtest.c $TMPDIR/dbtest
-}
-
 check_strlcpy()
 {
     cat >$TMPDIR/strtest.c <<EOF
@@ -631,9 +611,6 @@ check_elf
 echo -n "libmnl support: "
 check_mnl
 
-echo -n "Berkeley DB: "
-check_berkeley_db
-
 echo -n "need for strlcpy: "
 check_strlcpy
 
man/man8/arpd.8 deleted +0 -69

69 lines not on this page · raw message

misc/.gitignore +0 -1
index d7df0b02..1177605e 100644
@@ -1,4 +1,3 @@
-arpd
 ifstat
 ss
 ssfilter.tab.c
misc/Makefile +0 -7
index 50dae79c..4736d928 100644
@@ -6,10 +6,6 @@ TARGETS=ss nstat ifstat rtacct lnstat
 
 include ../config.mk
 
-ifeq ($(HAVE_BERKELEY_DB),y)
-	TARGETS += arpd
-endif
-
 all: $(TARGETS)
 
 ss: $(SSOBJ)
@@ -24,9 +20,6 @@ ifstat: ifstat.c
 rtacct: rtacct.c
 	$(QUIET_CC)$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o rtacct rtacct.c $(LDLIBS) -lm
 
-arpd: arpd.c
-	$(QUIET_CC)$(CC) $(CFLAGS) -I$(DBM_INCLUDE) $(CPPFLAGS) $(LDFLAGS) -o arpd arpd.c $(LDLIBS) -ldb
-
 ssfilter.tab.c: ssfilter.y
 	$(QUIET_YACC)$(YACC) -b ssfilter ssfilter.y
 
misc/arpd.c deleted +0 -841

841 lines not on this page · raw message

--
2.53.0

Applied
#1 lore raw
Quoted 19 lines · Stephen Hemminger

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.

---
v2 - claude review found some more dead bits to remove

Quoted 11 lines
 Makefile        |   5 -
 README          |  11 +-
 configure       |  23 --
 man/man8/arpd.8 |  69 ----
 misc/.gitignore |   1 -
 misc/Makefile   |   7 -
 misc/arpd.c     | 841 ------------------------------------------------
 7 files changed, 2 insertions(+), 955 deletions(-)
 delete mode 100644 man/man8/arpd.8
 delete mode 100644 misc/arpd.c

applied to iproute2-next