diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-12-17 18:16:56 +0100 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2019-12-17 23:10:46 +0100 |
commit | b6ecbf7ce643de6f32393ef7027e134958c0eb58 (patch) | |
tree | 1a62563ade80fe74e80dab3e2cd2a02011e301ca /src/osf.c | |
parent | 0ceb0151bda7bb947c9313d16eada75c41c51719 (diff) |
osf: add parse and build userdata interface
Add support for meta userdata area.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'src/osf.c')
-rw-r--r-- | src/osf.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -37,6 +37,17 @@ static bool osf_expr_cmp(const struct expr *e1, const struct expr *e2) (e1->osf.flags == e2->osf.flags); } +static int osf_expr_build_udata(struct nftnl_udata_buf *udbuf, + const struct expr *expr) +{ + return 0; +} + +static struct expr *osf_expr_parse_udata(const struct nftnl_udata *attr) +{ + return osf_expr_alloc(&internal_location, 0, 0); +} + const struct expr_ops osf_expr_ops = { .type = EXPR_OSF, .name = "osf", @@ -44,6 +55,8 @@ const struct expr_ops osf_expr_ops = { .clone = osf_expr_clone, .cmp = osf_expr_cmp, .json = osf_expr_json, + .parse_udata = osf_expr_parse_udata, + .build_udata = osf_expr_build_udata, }; struct expr *osf_expr_alloc(const struct location *loc, const uint8_t ttl, |