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
2f532b1b
Commit
2f532b1b
authored
Oct 18, 2003
by
Bart De Schuymer
Committed by
David S. Miller
Oct 18, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[EBTABLES]: Adjust skb->pkt_type when necessary.
parent
5eb94bbe
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
net/bridge/br_netfilter.c
net/bridge/br_netfilter.c
+1
-0
net/bridge/netfilter/ebt_redirect.c
net/bridge/netfilter/ebt_redirect.c
+2
-3
No files found.
net/bridge/br_netfilter.c
View file @
2f532b1b
...
@@ -217,6 +217,7 @@ static int br_nf_pre_routing_finish(struct sk_buff *skb)
...
@@ -217,6 +217,7 @@ static int br_nf_pre_routing_finish(struct sk_buff *skb)
}
}
memcpy
(
skb
->
mac
.
ethernet
->
h_dest
,
dev
->
dev_addr
,
memcpy
(
skb
->
mac
.
ethernet
->
h_dest
,
dev
->
dev_addr
,
ETH_ALEN
);
ETH_ALEN
);
skb
->
pkt_type
=
PACKET_HOST
;
}
}
}
else
{
}
else
{
skb
->
dst
=
(
struct
dst_entry
*
)
&
__fake_rtable
;
skb
->
dst
=
(
struct
dst_entry
*
)
&
__fake_rtable
;
...
...
net/bridge/netfilter/ebt_redirect.c
View file @
2f532b1b
...
@@ -34,11 +34,10 @@ static int ebt_target_redirect(struct sk_buff **pskb, unsigned int hooknr,
...
@@ -34,11 +34,10 @@ static int ebt_target_redirect(struct sk_buff **pskb, unsigned int hooknr,
if
(
hooknr
!=
NF_BR_BROUTING
)
if
(
hooknr
!=
NF_BR_BROUTING
)
memcpy
((
**
pskb
).
mac
.
ethernet
->
h_dest
,
memcpy
((
**
pskb
).
mac
.
ethernet
->
h_dest
,
in
->
br_port
->
br
->
dev
->
dev_addr
,
ETH_ALEN
);
in
->
br_port
->
br
->
dev
->
dev_addr
,
ETH_ALEN
);
else
{
else
memcpy
((
**
pskb
).
mac
.
ethernet
->
h_dest
,
memcpy
((
**
pskb
).
mac
.
ethernet
->
h_dest
,
in
->
dev_addr
,
ETH_ALEN
);
in
->
dev_addr
,
ETH_ALEN
);
(
*
pskb
)
->
pkt_type
=
PACKET_HOST
;
(
*
pskb
)
->
pkt_type
=
PACKET_HOST
;
}
return
info
->
target
;
return
info
->
target
;
}
}
...
...
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