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

setter.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 void set_exp_attr_master(struct nf_expect *exp, const void *value)
00011 {
00012         exp->master = *((struct nf_conntrack *) value);
00013 }
00014 
00015 static void set_exp_attr_expected(struct nf_expect *exp, const void *value)
00016 {
00017         exp->expected = *((struct nf_conntrack *) value);
00018 }
00019 
00020 static void set_exp_attr_mask(struct nf_expect *exp, const void *value)
00021 {
00022         exp->mask = *((struct nf_conntrack *) value);
00023 }
00024 
00025 static void set_exp_attr_timeout(struct nf_expect *exp, const void *value)
00026 {
00027         exp->timeout = *((u_int32_t *) value);
00028 }
00029 
00030 static void set_exp_attr_zone(struct nf_expect *exp, const void *value)
00031 {
00032         exp->zone = *((u_int16_t *) value);
00033 }
00034 
00035 static void set_exp_attr_flags(struct nf_expect *exp, const void *value)
00036 {
00037         exp->flags = *((u_int32_t *) value);
00038 }
00039 
00040 const set_exp_attr set_exp_attr_array[ATTR_EXP_MAX] = {
00041         [ATTR_EXP_MASTER]               = set_exp_attr_master,
00042         [ATTR_EXP_EXPECTED]             = set_exp_attr_expected,
00043         [ATTR_EXP_MASK]                 = set_exp_attr_mask,
00044         [ATTR_EXP_TIMEOUT]              = set_exp_attr_timeout,
00045         [ATTR_EXP_ZONE]                 = set_exp_attr_zone,
00046         [ATTR_EXP_FLAGS]                = set_exp_attr_flags,
00047 };

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