diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2012-02-05 01:30:22 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2012-02-06 23:44:01 +0100 |
commit | c9983354fa65c835643f85567f57cc8e9992cd29 (patch) | |
tree | bf99dc393ab9749903422385c727756a418e2683 /src/expect/getter.c | |
parent | 815805101cbc0e513cf909a77b5dfcd8d39684fd (diff) |
expect: add NAT support
This patch adds ATTR_EXP_NAT_TUPLE and ATTR_EXP_NAT_DIR attributes.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/expect/getter.c')
-rw-r--r-- | src/expect/getter.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/expect/getter.c b/src/expect/getter.c index 06c3bca..937e793 100644 --- a/src/expect/getter.c +++ b/src/expect/getter.c @@ -49,6 +49,16 @@ static const void *get_exp_attr_helper_name(const struct nf_expect *exp) return exp->helper_name; } +static const void *get_exp_attr_nat_dir(const struct nf_expect *exp) +{ + return &exp->nat_dir; +} + +static const void *get_exp_attr_nat_tuple(const struct nf_expect *exp) +{ + return &exp->nat; +} + const get_exp_attr get_exp_attr_array[ATTR_EXP_MAX] = { [ATTR_EXP_MASTER] = get_exp_attr_master, [ATTR_EXP_EXPECTED] = get_exp_attr_expected, @@ -58,4 +68,6 @@ const get_exp_attr get_exp_attr_array[ATTR_EXP_MAX] = { [ATTR_EXP_FLAGS] = get_exp_attr_flags, [ATTR_EXP_HELPER_NAME] = get_exp_attr_helper_name, [ATTR_EXP_CLASS] = get_exp_attr_class, + [ATTR_EXP_NAT_TUPLE] = get_exp_attr_nat_tuple, + [ATTR_EXP_NAT_DIR] = get_exp_attr_nat_dir, }; |