Re: [PATCH libnetfilter_log 0/6] Implementation of some fields omitted by `ipulog_get_packet`.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2021-08-30, at 02:16:21 +0200, Pablo Neira Ayuso wrote:
> On Sat, Aug 28, 2021 at 08:38:18PM +0100, Jeremy Sowden wrote:
> > The first four patches contain some miscellaneous improvements, then the
> > last two add code to retrieve time-stamps and interface names from
> > packets.
>
> Applied, thanks.
>
> > Incidentally, I notice that the last release of libnetfilter_log was in
> > 2012.  Time for 1.0.2, perhaps?
>
> I'll prepare for release, thanks for signalling.

Thanks.  Here's a patch to create a LIBVERSION variable for
libnetfilter_log_libipulog.

J.
From f41fb8baa5993e21dbe21ad9ad52c8af2fae4d98 Mon Sep 17 00:00:00 2001
From: Jeremy Sowden <jeremy@xxxxxxxxxx>
Date: Sun, 29 Aug 2021 11:40:13 +0100
Subject: [PATCH] build: add LIBVERSION variable for ipulog

Replace hard-coded version-info in LDFLAGS.

Signed-off-by: Jeremy Sowden <jeremy@xxxxxxxxxx>
---
 src/Makefile.am | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/src/Makefile.am b/src/Makefile.am
index 335c393f760a..815d9d31cfc0 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -18,13 +18,14 @@
 # set age to 0.
 # </snippet>
 #
-LIBVERSION=2:0:1
+LIBVERSION = 2:0:1
+IPULOG_LIBVERSION = 1:0:0
 
 include ${top_srcdir}/Make_global.am
 
 lib_LTLIBRARIES = libnetfilter_log.la
 
-libnetfilter_log_la_LDFLAGS = -Wc,-nostartfiles	\
+libnetfilter_log_la_LDFLAGS = -Wc,-nostartfiles \
 			      -version-info $(LIBVERSION)
 libnetfilter_log_la_SOURCES = libnetfilter_log.c nlmsg.c
 libnetfilter_log_la_LIBADD  = ${LIBNFNETLINK_LIBS} ${LIBMNL_LIBS}
@@ -32,8 +33,8 @@ libnetfilter_log_la_LIBADD  = ${LIBNFNETLINK_LIBS} ${LIBMNL_LIBS}
 if BUILD_IPULOG
 lib_LTLIBRARIES += libnetfilter_log_libipulog.la
 
-libnetfilter_log_libipulog_la_LDFLAGS = -Wc,-nostartfiles	\
-					-version-info 1:0:0
-libnetfilter_log_libipulog_la_LIBADD = libnetfilter_log.la ${LIBNFNETLINK_LIBS}
+libnetfilter_log_libipulog_la_LDFLAGS = -Wc,-nostartfiles \
+					-version-info $(IPULOG_LIBVERSION)
+libnetfilter_log_libipulog_la_LIBADD  = libnetfilter_log.la ${LIBNFNETLINK_LIBS}
 libnetfilter_log_libipulog_la_SOURCES = libipulog_compat.c
 endif
-- 
2.33.0

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux