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
e98db349
Commit
e98db349
authored
May 21, 2004
by
Bart De Schuymer
Committed by
David S. Miller
May 21, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[BRIDGE]: Fix LL_RESERVED_SPACE usage in netfilter code.
parent
34315ee2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
include/linux/netdevice.h
include/linux/netdevice.h
+2
-0
net/ipv4/ip_output.c
net/ipv4/ip_output.c
+1
-1
No files found.
include/linux/netdevice.h
View file @
e98db349
...
@@ -215,6 +215,8 @@ struct hh_cache
...
@@ -215,6 +215,8 @@ struct hh_cache
*/
*/
#define LL_RESERVED_SPACE(dev) \
#define LL_RESERVED_SPACE(dev) \
(((dev)->hard_header_len&~(HH_DATA_MOD - 1)) + HH_DATA_MOD)
(((dev)->hard_header_len&~(HH_DATA_MOD - 1)) + HH_DATA_MOD)
#define LL_RESERVED_SPACE_EXTRA(dev,extra) \
((((dev)->hard_header_len+extra)&~(HH_DATA_MOD - 1)) + HH_DATA_MOD)
/* These flag bits are private to the generic network queueing
/* These flag bits are private to the generic network queueing
* layer, they may not be explicitly referenced by any other
* layer, they may not be explicitly referenced by any other
...
...
net/ipv4/ip_output.c
View file @
e98db349
...
@@ -567,7 +567,7 @@ int ip_fragment(struct sk_buff *skb, int (*output)(struct sk_buff*))
...
@@ -567,7 +567,7 @@ int ip_fragment(struct sk_buff *skb, int (*output)(struct sk_buff*))
#ifdef CONFIG_BRIDGE_NETFILTER
#ifdef CONFIG_BRIDGE_NETFILTER
/* for bridged IP traffic encapsulated inside f.e. a vlan header,
/* for bridged IP traffic encapsulated inside f.e. a vlan header,
* we need to make room for the encapsulating header */
* we need to make room for the encapsulating header */
ll_rs
=
LL_RESERVED_SPACE
(
rt
->
u
.
dst
.
dev
+
nf_bridge_pad
(
skb
));
ll_rs
=
LL_RESERVED_SPACE
_EXTRA
(
rt
->
u
.
dst
.
dev
,
nf_bridge_pad
(
skb
));
mtu
-=
nf_bridge_pad
(
skb
);
mtu
-=
nf_bridge_pad
(
skb
);
#else
#else
ll_rs
=
LL_RESERVED_SPACE
(
rt
->
u
.
dst
.
dev
);
ll_rs
=
LL_RESERVED_SPACE
(
rt
->
u
.
dst
.
dev
);
...
...
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