From 8f3864732f38c72c018138269b3e2109c3b3cd40 Mon Sep 17 00:00:00 2001 From: Bart De Schuymer Date: Sat, 3 May 2003 18:13:34 +0000 Subject: update to 2.5.68+pkttype --- kernel/linux2.5/net/bridge/netfilter/ebtable_nat.c | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'kernel/linux2.5/net/bridge/netfilter/ebtable_nat.c') diff --git a/kernel/linux2.5/net/bridge/netfilter/ebtable_nat.c b/kernel/linux2.5/net/bridge/netfilter/ebtable_nat.c index 184d802..8dcf545 100644 --- a/kernel/linux2.5/net/bridge/netfilter/ebtable_nat.c +++ b/kernel/linux2.5/net/bridge/netfilter/ebtable_nat.c @@ -17,15 +17,15 @@ static struct ebt_entries initial_chains[] = { { .name = "PREROUTING", - .policy = EBT_ACCEPT + .policy = EBT_ACCEPT, }, { .name = "OUTPUT", - .policy = EBT_ACCEPT + .policy = EBT_ACCEPT, }, { .name = "POSTROUTING", - .policy = EBT_ACCEPT + .policy = EBT_ACCEPT, } }; @@ -37,9 +37,9 @@ static struct ebt_replace initial_table = .hook_entry = { [NF_BR_PRE_ROUTING] = &initial_chains[0], [NF_BR_LOCAL_OUT] = &initial_chains[1], - [NF_BR_POST_ROUTING] = &initial_chains[2] + [NF_BR_POST_ROUTING] = &initial_chains[2], }, - .entries = (char *)initial_chains + .entries = (char *)initial_chains, }; static int check(const struct ebt_table_info *info, unsigned int valid_hooks) @@ -55,7 +55,8 @@ static struct ebt_table frame_nat = .table = &initial_table, .valid_hooks = NAT_VALID_HOOKS, .lock = RW_LOCK_UNLOCKED, - .check = check + .check = check, + .me = THIS_MODULE, }; static unsigned int @@ -77,20 +78,20 @@ static struct nf_hook_ops ebt_ops_nat[] = { .hook = ebt_nat_dst, .pf = PF_BRIDGE, .hooknum = NF_BR_LOCAL_OUT, - .priority = NF_BR_PRI_NAT_DST_OTHER + .priority = NF_BR_PRI_NAT_DST_OTHER, }, { .hook = ebt_nat_src, .pf = PF_BRIDGE, .hooknum = NF_BR_POST_ROUTING, - .priority = NF_BR_PRI_NAT_SRC + .priority = NF_BR_PRI_NAT_SRC, }, { .hook = ebt_nat_dst, .pf = PF_BRIDGE, .hooknum = NF_BR_PRE_ROUTING, - .priority = NF_BR_PRI_NAT_DST_BRIDGED - } + .priority = NF_BR_PRI_NAT_DST_BRIDGED, + }, }; static int __init init(void) -- cgit v1.2.3