]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
lib: Move mnlg to lib for shared use
authorPetr Oros <poros@redhat.com>
Tue, 18 Nov 2025 14:10:29 +0000 (15:10 +0100)
committerDavid Ahern <dsahern@kernel.org>
Fri, 21 Nov 2025 16:10:22 +0000 (09:10 -0700)
Move mnlg.c to lib/ and mnlg.h to include/ to allow code reuse
across multiple tools.

Signed-off-by: Petr Oros <poros@redhat.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
devlink/Makefile
include/mnlg.h [moved from devlink/mnlg.h with 100% similarity]
lib/Makefile
lib/mnlg.c [moved from devlink/mnlg.c with 100% similarity]

index 1a1eed7ef6e440b4f3653596d062ed3e3e3b91dd..ec62f0c69d8e0d50486cde57ab3144317a325c07 100644 (file)
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
 include ../config.mk
 
-DEVLINKOBJ = devlink.o mnlg.o
+DEVLINKOBJ = devlink.o
 TARGETS += devlink
 LDLIBS += -lm
 
similarity index 100%
rename from devlink/mnlg.h
rename to include/mnlg.h
index 0ba629427cbb2d15ad2a7edf3aac7f3c2e4969cc..340c37bc945a4f97624a5ba6388da0fe1edb2479 100644 (file)
@@ -20,7 +20,7 @@ endif
 
 NLOBJ=libgenl.o libnetlink.o
 ifeq ($(HAVE_MNL),y)
-NLOBJ += mnl_utils.o
+NLOBJ += mnl_utils.o mnlg.o
 endif
 
 all: libnetlink.a libutil.a
similarity index 100%
rename from devlink/mnlg.c
rename to lib/mnlg.c