include/expr.h
raw| 1 | #ifndef _LIBNFTNL_EXPR_INTERNAL_H_ |
| 2 | #define _LIBNFTNL_EXPR_INTERNAL_H_ |
| 3 | |
| 4 | struct expr_ops; |
| 5 | |
| 6 | struct nftnl_expr { |
| 7 | struct list_head head; |
| 8 | uint32_t flags; |
| 9 | struct expr_ops *ops; |
| 10 | uint8_t data[]; |
| 11 | }; |
| 12 | |
| 13 | struct nlmsghdr; |
| 14 | |
| 15 | void nftnl_expr_build_payload(struct nlmsghdr *nlh, struct nftnl_expr *expr); |
| 16 | struct nftnl_expr *nftnl_expr_parse(struct nlattr *attr); |
| 17 | |
| 18 | |
| 19 | #endif |