summaryrefslogtreecommitdiffstats
path: root/src/expect/getter.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/expect/getter.c')
-rw-r--r--src/expect/getter.c12
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,
};