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
97c9538a
Commit
97c9538a
authored
Aug 03, 2002
by
Martin Brulisauer
Committed by
David Mosberger
Aug 03, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix unaligned accesses in ewrk3 net driver
parent
f66aa001
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
drivers/net/ewrk3.c
drivers/net/ewrk3.c
+4
-2
No files found.
drivers/net/ewrk3.c
View file @
97c9538a
...
...
@@ -133,6 +133,7 @@
0.42 22-Apr-96 Fix alloc_device() bug <jari@markkus2.fimr.fi>
0.43 16-Aug-96 Update alloc_device() to conform to de4x5.c
0.44 08-Nov-01 use library crc32 functions <Matt_Domsch@dell.com>
0.45 19-Jul-02 fix unaligned access on alpha <martin@bruli.net>
=========================================================================
*/
...
...
@@ -1008,12 +1009,13 @@ static int ewrk3_rx(struct net_device *dev)
}
p
=
skb
->
data
;
/* Look at the dest addr */
if
(
p
[
0
]
&
0x01
)
{
/* Multicast/Broadcast */
if
((
*
(
s
32
*
)
&
p
[
0
]
==
-
1
)
&&
(
*
(
s16
*
)
&
p
[
4
]
==
-
1
))
{
if
((
*
(
s
16
*
)
&
p
[
0
]
==
-
1
)
&&
(
*
(
s16
*
)
&
p
[
2
]
==
-
1
)
&&
(
*
(
s16
*
)
&
p
[
4
]
==
-
1
))
{
lp
->
pktStats
.
broadcast
++
;
}
else
{
lp
->
pktStats
.
multicast
++
;
}
}
else
if
((
*
(
s32
*
)
&
p
[
0
]
==
*
(
s32
*
)
&
dev
->
dev_addr
[
0
])
&&
}
else
if
((
*
(
s16
*
)
&
p
[
0
]
==
*
(
s16
*
)
&
dev
->
dev_addr
[
0
])
&&
(
*
(
s16
*
)
&
p
[
2
]
==
*
(
s16
*
)
&
dev
->
dev_addr
[
2
])
&&
(
*
(
s16
*
)
&
p
[
4
]
==
*
(
s16
*
)
&
dev
->
dev_addr
[
4
]))
{
lp
->
pktStats
.
unicast
++
;
}
...
...
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