10 #include "internal/internal.h"
12 static const void *get_exp_attr_master(
const struct nf_expect *exp)
17 static const void *get_exp_attr_expected(
const struct nf_expect *exp)
19 return &exp->expected;
22 static const void *get_exp_attr_mask(
const struct nf_expect *exp)
27 static const void *get_exp_attr_timeout(
const struct nf_expect *exp)
32 static const void *get_exp_attr_zone(
const struct nf_expect *exp)
37 static const void *get_exp_attr_flags(
const struct nf_expect *exp)
42 static const void *get_exp_attr_class(
const struct nf_expect *exp)
47 static const void *get_exp_attr_helper_name(
const struct nf_expect *exp)
49 return exp->helper_name;
52 static const void *get_exp_attr_nat_dir(
const struct nf_expect *exp)
57 static const void *get_exp_attr_nat_tuple(
const struct nf_expect *exp)
62 static const void *get_exp_attr_expectfn(
const struct nf_expect *exp)
67 const get_exp_attr get_exp_attr_array[ATTR_EXP_MAX] = {
68 [ATTR_EXP_MASTER] = get_exp_attr_master,
69 [ATTR_EXP_EXPECTED] = get_exp_attr_expected,
70 [ATTR_EXP_MASK] = get_exp_attr_mask,
71 [ATTR_EXP_TIMEOUT] = get_exp_attr_timeout,
72 [ATTR_EXP_ZONE] = get_exp_attr_zone,
73 [ATTR_EXP_FLAGS] = get_exp_attr_flags,
74 [ATTR_EXP_HELPER_NAME] = get_exp_attr_helper_name,
75 [ATTR_EXP_CLASS] = get_exp_attr_class,
76 [ATTR_EXP_NAT_TUPLE] = get_exp_attr_nat_tuple,
77 [ATTR_EXP_NAT_DIR] = get_exp_attr_nat_dir,
78 [ATTR_EXP_FN] = get_exp_attr_expectfn,