• Main Page
  • Modules
  • Data Structures
  • Files
  • File List

getter.c

00001 /*
00002  * (C) 2006-2007 by Pablo Neira Ayuso <pablo@netfilter.org>
00003  *
00004  * This software may be used and distributed according to the terms
00005  * of the GNU General Public License, incorporated herein by reference.
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 };

Generated on Wed Jan 26 2011 23:11:37 for libnetfilter_conntrack by  doxygen 1.7.1