summaryrefslogtreecommitdiffstats
path: root/include/expr.h
blob: a4333c6e2986960ecdd2930c3a69acf8bba9f080 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef _LIBNFTNL_EXPR_INTERNAL_H_
#define _LIBNFTNL_EXPR_INTERNAL_H_

struct expr_ops;

struct nft_rule_expr {
	struct list_head	head;
	uint32_t		flags;
	struct expr_ops		*ops;
	uint8_t			data[];
};

struct nlmsghdr;

void nft_rule_expr_build_payload(struct nlmsghdr *nlh, struct nft_rule_expr *expr);
struct nft_rule_expr *nft_rule_expr_parse(struct nlattr *attr);


#endif