Skip to content

Commit 5e0279b

Browse files
1582130940stintelAnsuel
authored
libnetfilter-conntrack: bump to 1.0.9 (#10442)
* libnetfilter-conntrack: bump to 1.0.9 Signed-off-by: Stijn Tintel <[email protected]> Acked-by: Jo-Philipp Wich <[email protected]> * libnetfilter-conntrack: backport patch fixing compilation with 5.15 Backport patch fixing compilation with 5.15 and musl provided by Robert Marko Signed-off-by: Ansuel Smith <[email protected]> Signed-off-by: Stijn Tintel <[email protected]> Signed-off-by: Ansuel Smith <[email protected]> Co-authored-by: Stijn Tintel <[email protected]> Co-authored-by: Ansuel Smith <[email protected]>
1 parent d3a96f1 commit 5e0279b

File tree

2 files changed

+52
-3
lines changed

2 files changed

+52
-3
lines changed

package/libs/libnetfilter-conntrack/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
include $(TOPDIR)/rules.mk
99

1010
PKG_NAME:=libnetfilter_conntrack
11-
PKG_VERSION:=1.0.8
12-
PKG_RELEASE:=1
11+
PKG_VERSION:=1.0.9
12+
PKG_RELEASE:=2
1313

1414
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
1515
PKG_SOURCE_URL:=https://www.netfilter.org/projects/libnetfilter_conntrack/files
16-
PKG_HASH:=0cd13be008923528687af6c6b860f35392d49251c04ee0648282d36b1faec1cf
16+
PKG_HASH:=67bd9df49fe34e8b82144f6dfb93b320f384a8ea59727e92ff8d18b5f4b579a8
1717

1818
PKG_MAINTAINER:=Jo-Philipp Wich <[email protected]>
1919
PKG_LICENSE:=GPL-2.0-or-later
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
From 21ee35dde73aec5eba35290587d479218c6dd824 Mon Sep 17 00:00:00 2001
2+
From: Robert Marko <[email protected]>
3+
Date: Thu, 24 Feb 2022 15:01:11 +0100
4+
Subject: conntrack: fix build with kernel 5.15 and musl
5+
6+
Currently, with kernel 5.15 headers and musl building is failing with
7+
redefinition errors due to a conflict between the kernel and musl headers.
8+
9+
Musl is able to suppres the conflicting kernel header definitions if they
10+
are included after the standard libc ones, however since ICMP definitions
11+
were moved into a separate internal header to avoid duplication this has
12+
stopped working and is breaking the builds.
13+
14+
It seems that the issue is that <netinet/in.h> which contains the UAPI
15+
suppression defines is included in the internal.h header and not in the
16+
proto.h which actually includes the kernel ICMP headers and thus UAPI
17+
supression defines are not present.
18+
19+
Solve this by moving the <netinet/in.h> include before the ICMP kernel
20+
includes in the proto.h
21+
22+
Fixes: bc1cb4b11403 ("conntrack: Move icmp request>reply type mapping to common file")
23+
Signed-off-by: Robert Marko <[email protected]>
24+
Signed-off-by: Florian Westphal <[email protected]>
25+
---
26+
include/internal/internal.h | 1 -
27+
include/internal/proto.h | 1 +
28+
2 files changed, 1 insertion(+), 1 deletion(-)
29+
30+
--- a/include/internal/internal.h
31+
+++ b/include/internal/internal.h
32+
@@ -14,7 +14,6 @@
33+
#include <arpa/inet.h>
34+
#include <time.h>
35+
#include <errno.h>
36+
-#include <netinet/in.h>
37+
38+
#include <libnfnetlink/libnfnetlink.h>
39+
#include <libnetfilter_conntrack/libnetfilter_conntrack.h>
40+
--- a/include/internal/proto.h
41+
+++ b/include/internal/proto.h
42+
@@ -2,6 +2,7 @@
43+
#define _NFCT_PROTO_H_
44+
45+
#include <stdint.h>
46+
+#include <netinet/in.h>
47+
#include <linux/icmp.h>
48+
#include <linux/icmpv6.h>
49+

0 commit comments

Comments
 (0)