1 From 6b09724c69d91668418ddb3af00da6db6755208c Mon Sep 17 00:00:00 2001
2 From: Steve Grubb <sgrubb@redhat.com>
3 Date: Thu, 2 Sep 2021 15:01:12 -0400
4 Subject: [PATCH] Make IPX packet interpretation dependent on the ipx header
7 --- a/auparse/interpret.c
8 +++ b/auparse/interpret.c
10 #include <linux/ax25.h>
11 #include <linux/atm.h>
12 #include <linux/x25.h>
13 -#include <linux/if.h> // FIXME: remove when ipx.h is fixed
14 -#include <linux/ipx.h>
15 +#ifdef HAVE_IPX_HEADERS
16 + #include <linux/if.h> // FIXME: remove when ipx.h is fixed
17 + #include <linux/ipx.h>
19 #include <linux/capability.h>
20 #include <sys/personality.h>
21 #include <sys/prctl.h>
22 @@ -1158,6 +1160,7 @@ static const char *print_sockaddr(const
23 x->sax25_call.ax25_call[6]);
26 +#ifdef HAVE_IPX_HEADERS
29 const struct sockaddr_ipx *ip =
30 @@ -1167,6 +1170,7 @@ static const char *print_sockaddr(const
31 str, ip->sipx_port, ip->sipx_network);
37 const struct sockaddr_atmpvc* at =
40 @@ -414,6 +414,12 @@ if test x"$LIBWRAP_LIBS" != "x"; then
41 AC_DEFINE_UNQUOTED(HAVE_LIBWRAP, [], Define if tcp_wrappers support is enabled )
44 +# linux/ipx.h - deprecated in 2018
45 +AC_CHECK_HEADER(linux/ipx.h, ipx_headers=yes, ipx_headers=no)
46 +if test $ipx_headers = yes ; then
47 + AC_DEFINE(HAVE_IPX_HEADERS,1,[IPX packet interpretation])
50 # See if we want to support lower capabilities for plugins