00001
00002
00003
00004
00005
00006
00007
00008 #include "internal/internal.h"
00009
00010 static const void *get_exp_attr_master(const struct nf_expect *exp)
00011 {
00012 return &exp->master;
00013 }
00014
00015 static const void *get_exp_attr_expected(const struct nf_expect *exp)
00016 {
00017 return &exp->expected;
00018 }
00019
00020 static const void *get_exp_attr_mask(const struct nf_expect *exp)
00021 {
00022 return &exp->mask;
00023 }
00024
00025 static const void *get_exp_attr_timeout(const struct nf_expect *exp)
00026 {
00027 return &exp->timeout;
00028 }
00029
00030 static const void *get_exp_attr_zone(const struct nf_expect *exp)
00031 {
00032 return &exp->zone;
00033 }
00034
00035 static const void *get_exp_attr_flags(const struct nf_expect *exp)
00036 {
00037 return &exp->flags;
00038 }
00039
00040 const get_exp_attr get_exp_attr_array[ATTR_EXP_MAX] = {
00041 [ATTR_EXP_MASTER] = get_exp_attr_master,
00042 [ATTR_EXP_EXPECTED] = get_exp_attr_expected,
00043 [ATTR_EXP_MASK] = get_exp_attr_mask,
00044 [ATTR_EXP_TIMEOUT] = get_exp_attr_timeout,
00045 [ATTR_EXP_ZONE] = get_exp_attr_zone,
00046 [ATTR_EXP_FLAGS] = get_exp_attr_flags,
00047 };