summaryrefslogtreecommitdiffstats
path: root/include/xfrm.h
blob: ea7d322c6df9105af33d58d18de6c66a66bb944d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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