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
be59ef03
Commit
be59ef03
authored
Jun 10, 2004
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPV4]: Fix unaligned accesses in arp_tables.c
parent
95fec628
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
net/ipv4/netfilter/arp_tables.c
net/ipv4/netfilter/arp_tables.c
+3
-4
No files found.
net/ipv4/netfilter/arp_tables.c
View file @
be59ef03
...
...
@@ -179,11 +179,10 @@ static inline int arp_packet_match(const struct arphdr *arphdr,
return
0
;
}
/* Look for ifname matches
; this should unroll nicely.
*/
/* Look for ifname matches
.
*/
for
(
i
=
0
,
ret
=
0
;
i
<
IFNAMSIZ
/
sizeof
(
unsigned
long
);
i
++
)
{
ret
|=
(((
const
unsigned
long
*
)
indev
)[
i
]
^
((
const
unsigned
long
*
)
arpinfo
->
iniface
)[
i
])
&
((
const
unsigned
long
*
)
arpinfo
->
iniface_mask
)[
i
];
ret
|=
(
indev
[
i
]
^
arpinfo
->
iniface
[
i
])
&
arpinfo
->
iniface_mask
[
i
];
}
if
(
FWINV
(
ret
!=
0
,
ARPT_INV_VIA_IN
))
{
...
...
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