netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [ulogd2 PATCH 4/4] Define _GNU_SOURCE to get members of tcphdr
@ 2015-05-16 13:44 Felix Janda
  0 siblings, 0 replies; only message in thread
From: Felix Janda @ 2015-05-16 13:44 UTC (permalink / raw)
  To: netfilter-devel

The source uses linux names for members of tcphdr. For example
"source" instead of "th_sport", ... musl libc's headers need
_GNU_SOURCE defined in order to expose these.

Signed-off-by: Felix Janda <felix.janda@posteo.de>
---
 filter/raw2packet/ulogd_raw2packet_BASE.c | 1 +
 filter/ulogd_filter_PWSNIFF.c             | 1 +
 2 files changed, 2 insertions(+)

diff --git a/filter/raw2packet/ulogd_raw2packet_BASE.c b/filter/raw2packet/ulogd_raw2packet_BASE.c
index 2079c91..9978b94 100644
--- a/filter/raw2packet/ulogd_raw2packet_BASE.c
+++ b/filter/raw2packet/ulogd_raw2packet_BASE.c
@@ -35,6 +35,7 @@
 #include <netinet/ip.h>
 #include <netinet/ip6.h>
 #include <netinet/in.h>
+#define _GNU_SOURCE
 #include <netinet/tcp.h>
 #include <netinet/ip_icmp.h>
 #include <netinet/icmp6.h>
diff --git a/filter/ulogd_filter_PWSNIFF.c b/filter/ulogd_filter_PWSNIFF.c
index 3d965e6..934ff0e 100644
--- a/filter/ulogd_filter_PWSNIFF.c
+++ b/filter/ulogd_filter_PWSNIFF.c
@@ -25,6 +25,7 @@
 #include <sys/socket.h>
 #include <netinet/ip.h>
 #include <netinet/in.h>
+#define _GNU_SOURCE
 #include <netinet/tcp.h>
 #include <ulogd/ulogd.h>
 
-- 
2.3.6

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-05-16 13:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-16 13:44 [ulogd2 PATCH 4/4] Define _GNU_SOURCE to get members of tcphdr Felix Janda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).