summaryrefslogtreecommitdiffstats
path: root/include/xfrm.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/xfrm.h')
-rw-r--r--include/xfrm.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/xfrm.h b/include/xfrm.h
new file mode 100644
index 00000000..ea7d322c
--- /dev/null
+++ b/include/xfrm.h
@@ -0,0 +1,16 @@
+#ifndef NFTABLES_XFRM_H
+#define NFTABLES_XFRM_H
+
+struct xfrm_template {
+ const char *token;
+ const struct datatype *dtype;
+ unsigned int len;
+ enum byteorder byteorder;
+};
+
+extern const struct xfrm_template xfrm_templates[__NFT_XFRM_KEY_MAX];
+
+extern struct expr *xfrm_expr_alloc(const struct location *loc,
+ uint8_t direction, uint8_t spnum,
+ enum nft_xfrm_keys key);
+#endif