From 971e619d8602fa52b1bfcb3ea65b7ab96be85318 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 9 Apr 2024 15:08:37 +0200 Subject: Adding upstream version 1.0.9. Signed-off-by: Daniel Baumann --- include/socket.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 include/socket.h (limited to 'include/socket.h') diff --git a/include/socket.h b/include/socket.h new file mode 100644 index 0000000..79938cc --- /dev/null +++ b/include/socket.h @@ -0,0 +1,24 @@ +#ifndef NFTABLES_SOCKET_H +#define NFTABLES_SOCKET_H + +/** + * struct socket_template - template for routing expressions + * + * @token: parser token for the expression + * @dtype: data type of the expression + * @len: length of the expression + * @byteorder: byteorder + */ +struct socket_template { + const char *token; + const struct datatype *dtype; + unsigned int len; + enum byteorder byteorder; +}; + +extern const struct socket_template socket_templates[]; + +extern struct expr *socket_expr_alloc(const struct location *loc, + enum nft_socket_keys key, uint32_t level); + +#endif /* NFTABLES_SOCKET_H */ -- cgit v1.2.3