diff options
Diffstat (limited to 'src')
49 files changed, 97 insertions, 8 deletions
diff --git a/src/cache.c b/src/cache.c index db9a9a75..3fe6bb40 100644 --- a/src/cache.c +++ b/src/cache.c @@ -6,6 +6,8 @@ * later) as published by the Free Software Foundation. */ +#include <nft.h> + #include <expression.h> #include <statement.h> #include <rule.h> @@ -12,7 +12,8 @@ * Development of this code funded by Astaro AG (http://www.astaro.com/) */ -#include <config.h> +#include <nft.h> + #include <stdlib.h> #include <stdio.h> #include <stdarg.h> @@ -6,6 +6,8 @@ * later) as published by the Free Software Foundation. */ +#include <nft.h> + #include <erec.h> #include <mnl.h> #include <cmd.h> @@ -10,6 +10,8 @@ * Development of this code funded by Astaro AG (http://www.astaro.com/) */ +#include <nft.h> + #include <stddef.h> #include <stdlib.h> #include <stdio.h> diff --git a/src/datatype.c b/src/datatype.c index 64396db8..dd6a5fbf 100644 --- a/src/datatype.c +++ b/src/datatype.c @@ -8,6 +8,8 @@ * Development of this code funded by Astaro AG (http://www.astaro.com/) */ +#include <nft.h> + #include <stdlib.h> #include <string.h> #include <inttypes.h> diff --git a/src/dccpopt.c b/src/dccpopt.c index 3a2eb952..d713d903 100644 --- a/src/dccpopt.c +++ b/src/dccpopt.c @@ -1,3 +1,5 @@ +#include <nft.h> + #include <stddef.h> #include <stdint.h> @@ -8,8 +8,8 @@ * Development of this code funded by Astaro AG (http://www.astaro.com/) */ -#define _GNU_SOURCE -#include <config.h> +#include <nft.h> + #include <stdio.h> #include <string.h> #include <stdarg.h> diff --git a/src/evaluate.c b/src/evaluate.c index 2b158aee..69a12351 100644 --- a/src/evaluate.c +++ b/src/evaluate.c @@ -8,6 +8,8 @@ * Development of this code funded by Astaro AG (http://www.astaro.com/) */ +#include <nft.h> + #include <stddef.h> #include <stdlib.h> #include <stdio.h> diff --git a/src/expression.c b/src/expression.c index 34902c84..8ef00891 100644 --- a/src/expression.c +++ b/src/expression.c @@ -8,6 +8,8 @@ * Development of this code funded by Astaro AG (http://www.astaro.com/) */ +#include <nft.h> + #include <stddef.h> #include <stdlib.h> #include <stdio.h> diff --git a/src/exthdr.c b/src/exthdr.c index 0358005b..dd8c7581 100644 --- a/src/exthdr.c +++ b/src/exthdr.c @@ -10,6 +10,8 @@ * Development of this code funded by Astaro AG (http://www.astaro.com/) */ +#include <nft.h> + #include <stddef.h> #include <stdlib.h> #include <stdio.h> @@ -8,6 +8,8 @@ * later) as published by the Free Software Foundation. */ +#include <nft.h> + #include <nftables.h> #include <erec.h> #include <expression.h> diff --git a/src/gmputil.c b/src/gmputil.c index b356460f..9cda1853 100644 --- a/src/gmputil.c +++ b/src/gmputil.c @@ -8,6 +8,8 @@ * Development of this code funded by Astaro AG (http://www.astaro.com/) */ +#include <nft.h> + #include <stddef.h> #include <stdlib.h> #include <stdarg.h> @@ -8,6 +8,8 @@ * later) as published by the Free Software Foundation. */ +#include <nft.h> + #include <nftables.h> #include <expression.h> #include <datatype.h> diff --git a/src/iface.c b/src/iface.c index 3647778c..ec7f5c7f 100644 --- a/src/iface.c +++ b/src/iface.c @@ -6,6 +6,8 @@ * later) as published by the Free Software Foundation. */ +#include <nft.h> + #include <stdio.h> #include <stdlib.h> #include <net/if.h> diff --git a/src/intervals.c b/src/intervals.c index d79c52c5..85de0199 100644 --- a/src/intervals.c +++ b/src/intervals.c @@ -6,6 +6,8 @@ * later) as published by the Free Software Foundation. */ +#include <nft.h> + #include <nftables.h> #include <expression.h> #include <intervals.h> diff --git a/src/ipopt.c b/src/ipopt.c index 67e904ff..3ba67b01 100644 --- a/src/ipopt.c +++ b/src/ipopt.c @@ -1,3 +1,5 @@ +#include <nft.h> + #include <stdint.h> #include <netinet/in.h> @@ -6,7 +6,8 @@ * later) as published by the Free Software Foundation. */ -#define _GNU_SOURCE +#include <nft.h> + #include <stdio.h> #include <string.h> diff --git a/src/libnftables.c b/src/libnftables.c index 69ea9d41..9c802ec9 100644 --- a/src/libnftables.c +++ b/src/libnftables.c @@ -5,6 +5,9 @@ * it under the terms of the GNU General Public License version 2 (or any * later) as published by the Free Software Foundation. */ + +#include <nft.h> + #include <nftables/libnftables.h> #include <erec.h> #include <mnl.h> @@ -8,6 +8,8 @@ * Development of this code funded by Astaro AG (http://www.astaro.com/) */ +#include <nft.h> + #include <stdlib.h> #include <stddef.h> #include <unistd.h> diff --git a/src/mergesort.c b/src/mergesort.c index a3a9d605..9315093b 100644 --- a/src/mergesort.c +++ b/src/mergesort.c @@ -6,6 +6,8 @@ * later) as published by the Free Software Foundation. */ +#include <nft.h> + #include <stdint.h> #include <expression.h> #include <gmputil.h> @@ -10,7 +10,7 @@ * Development of this code funded by Astaro AG (http://www.astaro.com/) */ -#define _GNU_SOURCE +#include <nft.h> #include <errno.h> #include <limits.h> diff --git a/src/mini-gmp.c b/src/mini-gmp.c index 04bed3f5..6217f745 100644 --- a/src/mini-gmp.c +++ b/src/mini-gmp.c @@ -41,6 +41,8 @@ see https://www.gnu.org/licenses/. */ mpn/generic/sbpi1_div_qr.c, mpn/generic/sub_n.c, mpn/generic/submul_1.c. */ +#include <nft.h> + #include <assert.h> #include <ctype.h> #include <limits.h> diff --git a/src/misspell.c b/src/misspell.c index 8992c75e..18da4386 100644 --- a/src/misspell.c +++ b/src/misspell.c @@ -6,6 +6,8 @@ * later) as published by the Free Software Foundation. */ +#include <nft.h> + #include <stdlib.h> #include <string.h> #include <limits.h> @@ -8,6 +8,8 @@ * Development of this code funded by Astaro AG (http://www.astaro.com/) */ +#include <nft.h> + #include <libmnl/libmnl.h> #include <libnftnl/common.h> #include <libnftnl/ruleset.h> diff --git a/src/monitor.c b/src/monitor.c index 3a189691..0554089b 100644 --- a/src/monitor.c +++ b/src/monitor.c @@ -6,6 +6,8 @@ * later) as published by the Free Software Foundation. */ +#include <nft.h> + #include <string.h> #include <fcntl.h> #include <errno.h> diff --git a/src/netlink.c b/src/netlink.c index ed61cd89..e1904a99 100644 --- a/src/netlink.c +++ b/src/netlink.c @@ -9,6 +9,8 @@ * Development of this code funded by Astaro AG (http://www.astaro.com/) */ +#include <nft.h> + #include <string.h> #include <errno.h> #include <libmnl/libmnl.h> diff --git a/src/netlink_delinearize.c b/src/netlink_delinearize.c index 125b6c68..dfa816cf 100644 --- a/src/netlink_delinearize.c +++ b/src/netlink_delinearize.c @@ -9,6 +9,8 @@ * Development of this code funded by Astaro AG (http://www.astaro.com/) */ +#include <nft.h> + #include <stdlib.h> #include <stdbool.h> #include <string.h> diff --git a/src/netlink_linearize.c b/src/netlink_linearize.c index f5b2d6bb..53a318aa 100644 --- a/src/netlink_linearize.c +++ b/src/netlink_linearize.c @@ -9,6 +9,8 @@ * Development of this code funded by Astaro AG (http://www.astaro.com/) */ +#include <nft.h> + #include <linux/netfilter/nf_tables.h> #include <linux/netfilter/nf_log.h> diff --git a/src/nfnl_osf.c b/src/nfnl_osf.c index 08e978de..48e83ea8 100644 --- a/src/nfnl_osf.c +++ b/src/nfnl_osf.c @@ -19,6 +19,8 @@ * Based on iptables/utils/nfnl_osf.c. */ +#include <nft.h> + #include <sys/time.h> #include <ctype.h> diff --git a/src/nftutils.c b/src/nftutils.c index 13f879dd..14cb1fcf 100644 --- a/src/nftutils.c +++ b/src/nftutils.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ -#include <config.h> +#include <nft.h> #include "nftutils.h" diff --git a/src/numgen.c b/src/numgen.c index 256514d1..3029fa58 100644 --- a/src/numgen.c +++ b/src/numgen.c @@ -8,6 +8,8 @@ * later) as published by the Free Software Foundation. */ +#include <nft.h> + #include <nftables.h> #include <expression.h> #include <datatype.h> diff --git a/src/optimize.c b/src/optimize.c index 7ca57ce7..0b99b672 100644 --- a/src/optimize.c +++ b/src/optimize.c @@ -11,7 +11,8 @@ * programme. */ -#define _GNU_SOURCE +#include <nft.h> + #include <string.h> #include <errno.h> #include <inttypes.h> @@ -6,6 +6,8 @@ * later) as published by the Free Software Foundation. */ +#include <nft.h> + #include <nftables.h> #include <expression.h> #include <utils.h> diff --git a/src/owner.c b/src/owner.c index c34b0c15..be1756a6 100644 --- a/src/owner.c +++ b/src/owner.c @@ -6,6 +6,8 @@ * later) as published by the Free Software Foundation. */ +#include <nft.h> + #include <stdio.h> #include <unistd.h> #include <stdlib.h> diff --git a/src/parser_json.c b/src/parser_json.c index 92cffee9..323d15bb 100644 --- a/src/parser_json.c +++ b/src/parser_json.c @@ -6,7 +6,8 @@ * later) as published by the Free Software Foundation. */ -#define _GNU_SOURCE +#include <nft.h> + #include <errno.h> #include <stdint.h> /* needed by gmputil.h */ #include <string.h> diff --git a/src/payload.c b/src/payload.c index 7862745b..9fdbf499 100644 --- a/src/payload.c +++ b/src/payload.c @@ -10,6 +10,8 @@ * Development of this code funded by Astaro AG (http://www.astaro.com/) */ +#include <nft.h> + #include <stddef.h> #include <stdlib.h> #include <stdio.h> diff --git a/src/print.c b/src/print.c index 4896e13c..8aefa961 100644 --- a/src/print.c +++ b/src/print.c @@ -6,6 +6,8 @@ * later) as published by the Free Software Foundation. */ +#include <nft.h> + #include <stdarg.h> #include <nftables.h> #include <utils.h> diff --git a/src/proto.c b/src/proto.c index edf99e84..eb9c3ea1 100644 --- a/src/proto.c +++ b/src/proto.c @@ -9,6 +9,8 @@ * */ +#include <nft.h> + #include <stddef.h> #include <stdlib.h> #include <stdint.h> @@ -8,6 +8,8 @@ * published by the Free Software Foundation. */ +#include <nft.h> + #include <errno.h> #include <stddef.h> #include <stdlib.h> @@ -8,6 +8,8 @@ * Development of this code funded by Astaro AG (http://www.astaro.com/) */ +#include <nft.h> + #include <stddef.h> #include <stdlib.h> #include <stdio.h> diff --git a/src/scanner.l b/src/scanner.l index c903b8c3..1aae1ecb 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -10,6 +10,8 @@ %{ +#include <nft.h> + #include <limits.h> #include <glob.h> #include <netinet/in.h> diff --git a/src/sctp_chunk.c b/src/sctp_chunk.c index 6e73e72f..1cd5e20a 100644 --- a/src/sctp_chunk.c +++ b/src/sctp_chunk.c @@ -6,6 +6,8 @@ * later) as published by the Free Software Foundation. */ +#include <nft.h> + #include <exthdr.h> #include <sctp_chunk.h> diff --git a/src/segtree.c b/src/segtree.c index 0e3d111f..a265a0b3 100644 --- a/src/segtree.c +++ b/src/segtree.c @@ -8,6 +8,8 @@ * Development of this code funded by Astaro AG (http://www.astaro.com/) */ +#include <nft.h> + #include <stdlib.h> #include <string.h> #include <inttypes.h> diff --git a/src/socket.c b/src/socket.c index 356557b4..8a149e63 100644 --- a/src/socket.c +++ b/src/socket.c @@ -8,6 +8,8 @@ * later) as published by the Free Software Foundation. */ +#include <nft.h> + #include <nftables.h> #include <expression.h> #include <socket.h> diff --git a/src/statement.c b/src/statement.c index 9ca7e208..e6ea43d0 100644 --- a/src/statement.c +++ b/src/statement.c @@ -8,6 +8,8 @@ * Development of this code funded by Astaro AG (http://www.astaro.com/) */ +#include <nft.h> + #include <stddef.h> #include <stdlib.h> #include <stdio.h> diff --git a/src/tcpopt.c b/src/tcpopt.c index c3e07d78..5dd760a5 100644 --- a/src/tcpopt.c +++ b/src/tcpopt.c @@ -1,3 +1,5 @@ +#include <nft.h> + #include <stddef.h> #include <stdlib.h> #include <stdio.h> diff --git a/src/utils.c b/src/utils.c index a5815018..d2841f34 100644 --- a/src/utils.c +++ b/src/utils.c @@ -8,6 +8,8 @@ * Development of this code funded by Astaro AG (http://www.astaro.com/) */ +#include <nft.h> + #include <stddef.h> #include <stdlib.h> #include <stdarg.h> @@ -8,6 +8,8 @@ * later) as published by the Free Software Foundation. */ +#include <nft.h> + #include <nftables.h> #include <erec.h> #include <expression.h> @@ -7,6 +7,8 @@ * later) as published by the Free Software Foundation. */ +#include <nft.h> + #include <stdlib.h> #include <time.h> #include <string.h> |