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
Kirill Smelkov
linux
Commits
a359ceb1
Commit
a359ceb1
authored
Nov 21, 2002
by
Bart De Schuymer
Committed by
David S. Miller
Nov 21, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] add necessary #ifdefs to netfilter_bridge.h, vs 2.5.48
parent
348f821c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
include/linux/netfilter_bridge.h
include/linux/netfilter_bridge.h
+7
-0
No files found.
include/linux/netfilter_bridge.h
View file @
a359ceb1
...
@@ -6,7 +6,9 @@
...
@@ -6,7 +6,9 @@
#include <linux/config.h>
#include <linux/config.h>
#include <linux/netfilter.h>
#include <linux/netfilter.h>
#if defined(__KERNEL__) && defined(CONFIG_NETFILTER)
#include <asm/atomic.h>
#include <asm/atomic.h>
#endif
/* Bridge Hooks */
/* Bridge Hooks */
/* After promisc drops, checksum checks. */
/* After promisc drops, checksum checks. */
...
@@ -23,6 +25,8 @@
...
@@ -23,6 +25,8 @@
#define NF_BR_BROUTING 5
#define NF_BR_BROUTING 5
#define NF_BR_NUMHOOKS 6
#define NF_BR_NUMHOOKS 6
#ifdef __KERNEL__
#define BRNF_PKT_TYPE 0x01
#define BRNF_PKT_TYPE 0x01
#define BRNF_BRIDGED_DNAT 0x02
#define BRNF_BRIDGED_DNAT 0x02
#define BRNF_DONT_TAKE_PARENT 0x04
#define BRNF_DONT_TAKE_PARENT 0x04
...
@@ -38,6 +42,7 @@ enum nf_br_hook_priorities {
...
@@ -38,6 +42,7 @@ enum nf_br_hook_priorities {
NF_BR_PRI_LAST
=
INT_MAX
,
NF_BR_PRI_LAST
=
INT_MAX
,
};
};
#ifdef CONFIG_NETFILTER
static
inline
static
inline
struct
nf_bridge_info
*
nf_bridge_alloc
(
struct
sk_buff
*
skb
)
struct
nf_bridge_info
*
nf_bridge_alloc
(
struct
sk_buff
*
skb
)
{
{
...
@@ -57,5 +62,7 @@ struct bridge_skb_cb {
...
@@ -57,5 +62,7 @@ struct bridge_skb_cb {
__u32
ipv4
;
__u32
ipv4
;
}
daddr
;
}
daddr
;
};
};
#endif
/* CONFIG_NETFILTER */
#endif
/* __KERNEL__ */
#endif
#endif
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