From b24f4ac006dcc3f2c6a904af2f3eb02bd4d16ea2 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Thu, 7 Oct 2010 17:43:41 +0200 Subject: expect: add CTA_EXPECT_ZONE support We also remove the reference to CTA_EXPECT_QUEUENR with was not ever pushed into Linux kernel mainline. Signed-off-by: Pablo Neira Ayuso --- src/expect/getter.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/expect/getter.c') diff --git a/src/expect/getter.c b/src/expect/getter.c index 2a622af..d655c92 100644 --- a/src/expect/getter.c +++ b/src/expect/getter.c @@ -27,9 +27,15 @@ static const void *get_exp_attr_timeout(const struct nf_expect *exp) return &exp->timeout; } -get_exp_attr get_exp_attr_array[] = { +static const void *get_exp_attr_zone(const struct nf_expect *exp) +{ + return &exp->zone; +} + +get_exp_attr get_exp_attr_array[ATTR_EXP_MAX] = { [ATTR_EXP_MASTER] = get_exp_attr_master, [ATTR_EXP_EXPECTED] = get_exp_attr_expected, [ATTR_EXP_MASK] = get_exp_attr_mask, [ATTR_EXP_TIMEOUT] = get_exp_attr_timeout, + [ATTR_EXP_ZONE] = get_exp_attr_zone, }; -- cgit v1.2.3