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
96ca2f80
Commit
96ca2f80
authored
Sep 02, 2002
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drivers/net/ppp_generic.c: Revert my idiotic unaligned SKB changes.
parent
d3e54fc0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
19 deletions
+0
-19
drivers/net/ppp_generic.c
drivers/net/ppp_generic.c
+0
-19
No files found.
drivers/net/ppp_generic.c
View file @
96ca2f80
...
...
@@ -1388,25 +1388,6 @@ static void
ppp_receive_frame
(
struct
ppp
*
ppp
,
struct
sk_buff
*
skb
,
struct
channel
*
pch
)
{
if
(
skb
->
len
>=
2
)
{
struct
sk_buff
*
new_skb
;
/* If this packet is byte aligned, fix that. */
if
((
unsigned
long
)
skb
->
data
&
0x1UL
)
{
int
len
=
skb
->
len
;
if
(
skb_tailroom
(
skb
)
<
124
)
len
+=
128
;
new_skb
=
dev_alloc_skb
(
len
+
16
);
if
(
!
new_skb
)
{
printk
(
KERN_ERR
"PPP: no memory (bad aligned SKB)
\n
"
);
goto
err
;
}
skb_reserve
(
new_skb
,
2
);
memcpy
(
skb_put
(
new_skb
,
skb
->
len
),
skb
->
data
,
skb
->
len
);
kfree_skb
(
skb
);
skb
=
new_skb
;
}
#ifdef CONFIG_PPP_MULTILINK
/* XXX do channel-level decompression here */
if
(
PPP_PROTO
(
skb
)
==
PPP_MP
)
...
...
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