Define _GNU_SOURCE to get members of tcphdr
PATCH 4/4 Define _GNU_SOURCE to get members of tcphdr
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 <[email protected]>
--- filter/raw2packet/ulogd_raw2packet_BASE.c | 1 + filter/ulogd_filter_PWSNIFF.c | 1 + 2 files changed, 2 insertions(+)
filter/raw2packet/ulogd_raw2packet_BASE.c +1 -0
@@ -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>
filter/ulogd_filter_PWSNIFF.c +1 -0
@@ -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>
Signature · 1 line
2.3.6