diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2012-02-05 21:42:31 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2012-02-07 00:53:16 +0100 |
commit | a07ef78b7f3d6628f889f2f2167fb5e748eb567e (patch) | |
tree | c4169a89d671dcbbb9b91b3f817c2d767e70da8e /src | |
parent | 721fbbde40ee5ecc966c144be11516839ab86728 (diff) | |
download | conntrack-tools-a07ef78b7f3d6628f889f2f2167fb5e748eb567e.tar.gz conntrack-tools-a07ef78b7f3d6628f889f2f2167fb5e748eb567e.zip |
conntrackd: support expectfn synchronization for expectations
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/build.c | 2 | ||||
-rw-r--r-- | src/parse.c | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/build.c b/src/build.c index a2901b1..7d4ef12 100644 --- a/src/build.c +++ b/src/build.c @@ -357,4 +357,6 @@ void exp2msg(const struct nf_expect *exp, struct nethdr *n) exp_build_u32(exp, ATTR_EXP_NAT_DIR, n, NTA_EXP_NAT_DIR); } exp_build_str(exp, ATTR_EXP_HELPER_NAME, n, NTA_EXP_HELPER_NAME); + if (nfexp_attr_is_set(exp, ATTR_EXP_FN)) + exp_build_str(exp, ATTR_EXP_FN, n, NTA_EXP_FN); } diff --git a/src/parse.c b/src/parse.c index ceb9e26..6695cc8 100644 --- a/src/parse.c +++ b/src/parse.c @@ -393,6 +393,11 @@ static struct exp_parser { .exp_attr = ATTR_EXP_HELPER_NAME, .max_size = NFCT_HELPER_NAME_MAX, }, + [NTA_EXP_FN] = { + .parse = exp_parse_str, + .exp_attr = ATTR_EXP_FN, + .max_size = NFCT_HELPER_NAME_MAX, + }, }; static void exp_parse_ct_group(void *ct, int attr, void *data) |