summaryrefslogtreecommitdiffstats
path: root/iptables/xtables-arp.c
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@inai.de>2019-05-28 11:43:26 +0200
committerFlorian Westphal <fw@strlen.de>2019-05-30 22:43:17 +0200
commit093cec72e7f7793d55fa1547cadb6655104feb5e (patch)
tree237bfd5ed2672fd18dc93a21dc53ddb11b29de82 /iptables/xtables-arp.c
parenta84b12c69dcd57eb7df19e59b85af0fb5d98a81b (diff)
src: replace IPTABLES_VERSION by PACKAGE_VERSION
The IPTABLES_VERSION C macro replicates the PACKAGE_VERSION C macro (both have the same definition, "@PACKAGE_VERSION@"). Since IPTABLES_VERSION, being located in internal.h, is not exposed to downstream users in any way, it can just be replaced by PACKAGE_VERSION, which saves a configure-time file substitution. This goes towards eliminating unnecessary rebuilds after rerunning ./configure. Signed-off-by: Jan Engelhardt <jengelh@inai.de> Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'iptables/xtables-arp.c')
-rw-r--r--iptables/xtables-arp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/iptables/xtables-arp.c b/iptables/xtables-arp.c
index d3cb9df8..35844a9b 100644
--- a/iptables/xtables-arp.c
+++ b/iptables/xtables-arp.c
@@ -27,7 +27,7 @@
This tool is not luser-proof: you can specify an Ethernet source address
and set hardware length to something different than 6, f.e.
*/
-
+#include "config.h"
#include <getopt.h>
#include <string.h>
#include <netdb.h>
@@ -155,7 +155,7 @@ int RUNTIME_NF_ARP_NUMHOOKS = 3;
extern void xtables_exit_error(enum xtables_exittype status, const char *msg, ...) __attribute__((noreturn, format(printf,2,3)));
struct xtables_globals arptables_globals = {
.option_offset = 0,
- .program_version = IPTABLES_VERSION,
+ .program_version = PACKAGE_VERSION,
.orig_opts = original_opts,
.exit_err = xtables_exit_error,
.compat_rev = nft_compatible_revision,