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
b85e5b29
Commit
b85e5b29
authored
Sep 21, 2003
by
Bart De Schuymer
Committed by
David S. Miller
Sep 21, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NETFILTER]: Fix parisc64 alignment problems in ipt_physdev.c
parent
7ce7eed5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
include/linux/netfilter_ipv4/ipt_physdev.h
include/linux/netfilter_ipv4/ipt_physdev.h
+2
-2
net/ipv4/netfilter/ipt_physdev.c
net/ipv4/netfilter/ipt_physdev.c
+9
-9
No files found.
include/linux/netfilter_ipv4/ipt_physdev.h
View file @
b85e5b29
...
...
@@ -13,12 +13,12 @@
#define IPT_PHYSDEV_OP_MASK (0x20 - 1)
struct
ipt_physdev_info
{
u_int8_t
invert
;
u_int8_t
bitmask
;
char
physindev
[
IFNAMSIZ
];
char
in_mask
[
IFNAMSIZ
];
char
physoutdev
[
IFNAMSIZ
];
char
out_mask
[
IFNAMSIZ
];
u_int8_t
invert
;
u_int8_t
bitmask
;
};
#endif
/*_IPT_PHYSDEV_H*/
net/ipv4/netfilter/ipt_physdev.c
View file @
b85e5b29
...
...
@@ -23,7 +23,7 @@ match(const struct sk_buff *skb,
int
i
;
static
const
char
nulldevname
[
IFNAMSIZ
];
const
struct
ipt_physdev_info
*
info
=
matchinfo
;
unsigned
long
ret
;
unsigned
int
ret
;
const
char
*
indev
,
*
outdev
;
struct
nf_bridge_info
*
nf_bridge
;
...
...
@@ -65,10 +65,10 @@ match(const struct sk_buff *skb,
if
(
!
(
info
->
bitmask
&
IPT_PHYSDEV_OP_IN
))
goto
match_outdev
;
indev
=
nf_bridge
->
physindev
?
nf_bridge
->
physindev
->
name
:
nulldevname
;
for
(
i
=
0
,
ret
=
0
;
i
<
IFNAMSIZ
/
sizeof
(
unsigned
long
);
i
++
)
{
ret
|=
(((
const
unsigned
long
*
)
indev
)[
i
]
^
((
const
unsigned
long
*
)
info
->
physindev
)[
i
])
&
((
const
unsigned
long
*
)
info
->
in_mask
)[
i
];
for
(
i
=
0
,
ret
=
0
;
i
<
IFNAMSIZ
/
sizeof
(
unsigned
int
);
i
++
)
{
ret
|=
(((
const
unsigned
int
*
)
indev
)[
i
]
^
((
const
unsigned
int
*
)
info
->
physindev
)[
i
])
&
((
const
unsigned
int
*
)
info
->
in_mask
)[
i
];
}
if
((
ret
==
0
)
^
!
(
info
->
invert
&
IPT_PHYSDEV_OP_IN
))
...
...
@@ -79,10 +79,10 @@ match(const struct sk_buff *skb,
return
MATCH
;
outdev
=
nf_bridge
->
physoutdev
?
nf_bridge
->
physoutdev
->
name
:
nulldevname
;
for
(
i
=
0
,
ret
=
0
;
i
<
IFNAMSIZ
/
sizeof
(
unsigned
long
);
i
++
)
{
ret
|=
(((
const
unsigned
long
*
)
outdev
)[
i
]
^
((
const
unsigned
long
*
)
info
->
physoutdev
)[
i
])
&
((
const
unsigned
long
*
)
info
->
out_mask
)[
i
];
for
(
i
=
0
,
ret
=
0
;
i
<
IFNAMSIZ
/
sizeof
(
unsigned
int
);
i
++
)
{
ret
|=
(((
const
unsigned
int
*
)
outdev
)[
i
]
^
((
const
unsigned
int
*
)
info
->
physoutdev
)[
i
])
&
((
const
unsigned
int
*
)
info
->
out_mask
)[
i
];
}
return
(
ret
!=
0
)
^
!
(
info
->
invert
&
IPT_PHYSDEV_OP_OUT
);
...
...
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