-#ifndef _CT_H
-#define _CT_H
+#ifndef NFTABLES_CT_H
+#define NFTABLES_CT_H
/**
* struct ct_template
extern struct expr *ct_expr_alloc(const struct location *loc,
enum nft_ct_keys key);
-#endif /* _CT_H */
+#endif /* NFTABLES_CT_H */
-#ifndef _DATATYPE_H
-#define _DATATYPE_H
+#ifndef NFTABLES_DATATYPE_H
+#define NFTABLES_DATATYPE_H
/**
* enum datatypes
extern const struct datatype mark_type;
extern const struct datatype time_type;
-#endif /* _DATATYPE_H */
+#endif /* NFTABLES_DATATYPE_H */
-#ifndef _EREC_H
-#define _EREC_H
+#ifndef NFTABLES_EREC_H
+#define NFTABLES_EREC_H
#include <nftables.h>
#include <utils.h>
extern void erec_print(FILE *f, const struct error_record *erec);
extern void erec_print_list(FILE *f, struct list_head *list);
-#endif /* _EREC_H */
+#endif /* NFTABLES_EREC_H */
-#ifndef _EXPRESSION_H
-#define _EXPRESSION_H
+#ifndef NFTABLES_EXPRESSION_H
+#define NFTABLES_EXPRESSION_H
#include <stdbool.h>
#include <gmp.h>
extern struct expr *map_expr_alloc(const struct location *loc,
struct expr *arg, struct expr *list);
-#endif /* _EXPRESSION_H */
+#endif /* NFTABLES_EXPRESSION_H */
-#ifndef _EXTHDR_H
-#define _EXTHDR_H
+#ifndef NFTABLES_EXTHDR_H
+#define NFTABLES_EXTHDR_H
/**
* struct exthdr_desc - extension header description
extern const struct exthdr_desc exthdr_dst;
extern const struct exthdr_desc exthdr_mh;
-#endif /* _EXTHDR_H */
+#endif /* NFTABLES_EXTHDR_H */
-#ifndef _GMPUTIL_H
-#define _GMPUTIL_H
+#ifndef NFTABLES_GMPUTIL_H
+#define NFTABLES_GMPUTIL_H
#include <gmp.h>
unsigned int len);
extern void mpz_switch_byteorder(mpz_t rop, unsigned int len);
-#endif /* _GMPUTIL_H */
+#endif /* NFTABLES_GMPUTIL_H */
-#ifndef _HEADERS_H
-#define _HEADERS_H
+#ifndef NFTABLES_HEADERS_H
+#define NFTABLES_HEADERS_H
#ifndef IPPROTO_UDPLITE
# define IPPROTO_UDPLITE 136
/* RFC 5142 */
#define IP6_MH_TYPE_HASM 12 /* Home Agent Switch Message */
-#endif /* _HEADERS_H */
+#endif /* NFTABLES_HEADERS_H */
-#ifndef _META_H
-#define _META_H
+#ifndef NFTABLES_META_H
+#define NFTABLES_META_H
/**
* struct meta_template - template for meta expressions and statements
extern struct expr *meta_expr_alloc(const struct location *loc,
enum nft_meta_keys key);
-#endif /* _META_H */
+#endif /* NFTABLES_META_H */
-#ifndef _NETLINK_H
-#define _NETLINK_H
+#ifndef NFTABLES_NETLINK_H
+#define NFTABLES_NETLINK_H
#include <netlink/netfilter/netfilter.h>
#include <netlink/netfilter/nft_table.h>
extern int netlink_list_table(struct netlink_ctx *ctx, const struct handle *h);
extern int netlink_flush_table(struct netlink_ctx *ctx, const struct handle *h);
-#endif /* _NETLINK_H */
+#endif /* NFTABLES_NETLINK_H */
-#ifndef _NFTABLES_H
-#define _NFTABLES_H
+#ifndef NFTABLES_NFTABLES_H
+#define NFTABLES_NFTABLES_H
#include <stdbool.h>
#include <stdarg.h>
off_t line_offset;
};
-#endif /* _NFTABLES_H */
+#endif /* NFTABLES_NFTABLES_H */
-#ifndef _PARSER_H
-#define _PARSER_H
+#ifndef NFTABLES_PARSER_H
+#define NFTABLES_PARSER_H
#include <list.h>
const struct input_descriptor *indesc,
const char *buffer);
-#endif /* _PARSER_H */
+#endif /* NFTABLES_PARSER_H */
-#ifndef _PAYLOAD_H
-#define _PAYLOAD_H
+#ifndef NFTABLES_PAYLOAD_H
+#define NFTABLES_PAYLOAD_H
#include <nftables.h>
extern const struct payload_desc payload_vlan;
extern const struct payload_desc payload_eth;
-#endif /* _PAYLOAD_H */
+#endif /* NFTABLES_PAYLOAD_H */
*
*/
-#ifndef _RBTREE_H
-#define _RBTREE_H
+#ifndef NFTABLES_RBTREE_H
+#define NFTABLES_RBTREE_H
#include <stddef.h>
(pos) != NULL; \
(node) = (next))
-#endif /* _RBTREE_H */
+#endif /* NFTABLES_RBTREE_H */
-#ifndef _RULE_H
-#define _RULE_H
+#ifndef NFTABLES_RULE_H
+#define NFTABLES_RULE_H
#include <stdint.h>
#include <nftables.h>
struct netlink_ctx;
extern int do_command(struct netlink_ctx *ctx, struct cmd *cmd);
-#endif /* RULE_H */
+#endif /* NFTABLES_RULE_H */
-#ifndef _STATEMENT_H
-#define _STATEMENT_H
+#ifndef NFTABLES_STATEMENT_H
+#define NFTABLES_STATEMENT_H
#include <list.h>
#include <expression.h>
extern void stmt_list_free(struct list_head *list);
extern void stmt_print(const struct stmt *stmt);
-#endif /* _STATEMENT_H */
+#endif /* NFTABLES_STATEMENT_H */
-#ifndef _UTILS_H
-#define _UTILS_H
+#ifndef NFTABLES_UTILS_H
+#define NFTABLES_UTILS_H
#include <stdint.h>
#include <stdbool.h>
extern void *xzalloc(size_t size);
extern char *xstrdup(const char *s);
-#endif /* _UTILS_H */
+#endif /* NFTABLES_UTILS_H */