Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
69e3e77c
Commit
69e3e77c
authored
Apr 28, 2003
by
Stephen Hemminger
Committed by
David S. Miller
Apr 28, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[BRIDGE]: Use C99 initializers for netfilter bridge.
parent
fceb2372
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
9 deletions
+45
-9
net/bridge/br_netfilter.c
net/bridge/br_netfilter.c
+45
-9
No files found.
net/bridge/br_netfilter.c
View file @
69e3e77c
...
@@ -574,15 +574,51 @@ static unsigned int ipv4_sabotage_out(unsigned int hook, struct sk_buff **pskb,
...
@@ -574,15 +574,51 @@ static unsigned int ipv4_sabotage_out(unsigned int hook, struct sk_buff **pskb,
* ip_refrag() can return NF_STOLEN.
* ip_refrag() can return NF_STOLEN.
*/
*/
static
struct
nf_hook_ops
br_nf_ops
[]
=
{
static
struct
nf_hook_ops
br_nf_ops
[]
=
{
{
{
NULL
,
NULL
},
br_nf_pre_routing
,
THIS_MODULE
,
PF_BRIDGE
,
NF_BR_PRE_ROUTING
,
NF_BR_PRI_BRNF
},
{
.
hook
=
br_nf_pre_routing
,
{
{
NULL
,
NULL
},
br_nf_local_in
,
THIS_MODULE
,
PF_BRIDGE
,
NF_BR_LOCAL_IN
,
NF_BR_PRI_BRNF
},
.
owner
=
THIS_MODULE
,
{
{
NULL
,
NULL
},
br_nf_forward
,
THIS_MODULE
,
PF_BRIDGE
,
NF_BR_FORWARD
,
NF_BR_PRI_BRNF
},
.
pf
=
PF_BRIDGE
,
{
{
NULL
,
NULL
},
br_nf_local_out
,
THIS_MODULE
,
PF_BRIDGE
,
NF_BR_LOCAL_OUT
,
NF_BR_PRI_FIRST
},
.
hooknum
=
NF_BR_PRE_ROUTING
,
{
{
NULL
,
NULL
},
br_nf_post_routing
,
THIS_MODULE
,
PF_BRIDGE
,
NF_BR_POST_ROUTING
,
NF_BR_PRI_LAST
},
.
priority
=
NF_BR_PRI_BRNF
,
},
{
{
NULL
,
NULL
},
ipv4_sabotage_in
,
THIS_MODULE
,
PF_INET
,
NF_IP_PRE_ROUTING
,
NF_IP_PRI_FIRST
},
{
.
hook
=
br_nf_local_in
,
{
{
NULL
,
NULL
},
ipv4_sabotage_out
,
THIS_MODULE
,
PF_INET
,
NF_IP_FORWARD
,
NF_IP_PRI_BRIDGE_SABOTAGE_FORWARD
},
.
owner
=
THIS_MODULE
,
{
{
NULL
,
NULL
},
ipv4_sabotage_out
,
THIS_MODULE
,
PF_INET
,
NF_IP_LOCAL_OUT
,
NF_IP_PRI_BRIDGE_SABOTAGE_LOCAL_OUT
},
.
pf
=
PF_BRIDGE
,
{
{
NULL
,
NULL
},
ipv4_sabotage_out
,
THIS_MODULE
,
PF_INET
,
NF_IP_POST_ROUTING
,
NF_IP_PRI_FIRST
}
.
hooknum
=
NF_BR_LOCAL_IN
,
.
priority
=
NF_BR_PRI_BRNF
,
},
{
.
hook
=
br_nf_forward
,
.
owner
=
THIS_MODULE
,
.
pf
=
PF_BRIDGE
,
.
hooknum
=
NF_BR_FORWARD
,
.
priority
=
NF_BR_PRI_BRNF
,
},
{
.
hook
=
br_nf_local_out
,
.
owner
=
THIS_MODULE
,
.
pf
=
PF_BRIDGE
,
.
hooknum
=
NF_BR_LOCAL_OUT
,
.
priority
=
NF_BR_PRI_FIRST
,
},
{
.
hook
=
br_nf_post_routing
,
.
owner
=
THIS_MODULE
,
.
pf
=
PF_BRIDGE
,
.
hooknum
=
NF_BR_POST_ROUTING
,
.
priority
=
NF_BR_PRI_LAST
,
},
{
.
hook
=
ipv4_sabotage_in
,
.
owner
=
THIS_MODULE
,
.
pf
=
PF_INET
,
.
hooknum
=
NF_IP_PRE_ROUTING
,
.
priority
=
NF_IP_PRI_FIRST
,
},
{
.
hook
=
ipv4_sabotage_out
,
.
owner
=
THIS_MODULE
,
.
pf
=
PF_INET
,
.
hooknum
=
NF_IP_FORWARD
,
.
priority
=
NF_IP_PRI_BRIDGE_SABOTAGE_FORWARD
,
},
{
.
hook
=
ipv4_sabotage_out
,
.
owner
=
THIS_MODULE
,
.
pf
=
PF_INET
,
.
hooknum
=
NF_IP_LOCAL_OUT
,
.
priority
=
NF_IP_PRI_BRIDGE_SABOTAGE_LOCAL_OUT
,
},
{
.
hook
=
ipv4_sabotage_out
,
.
owner
=
THIS_MODULE
,
.
pf
=
PF_INET
,
.
hooknum
=
NF_IP_POST_ROUTING
,
.
priority
=
NF_IP_PRI_FIRST
,
},
};
};
#define NUMHOOKS (sizeof(br_nf_ops)/sizeof(br_nf_ops[0]))
#define NUMHOOKS (sizeof(br_nf_ops)/sizeof(br_nf_ops[0]))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment