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
f660517d
Commit
f660517d
authored
Oct 03, 2003
by
Stephen Hemminger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NET]: syncppp needs to pullup headers.
parent
628cb02b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
drivers/net/wan/syncppp.c
drivers/net/wan/syncppp.c
+6
-5
No files found.
drivers/net/wan/syncppp.c
View file @
f660517d
...
...
@@ -236,7 +236,7 @@ void sppp_input (struct net_device *dev, struct sk_buff *skb)
sp
->
ipkts
++
;
}
if
(
skb
->
len
<=
PPP_HEADER_LEN
)
{
if
(
!
pskb_may_pull
(
skb
,
PPP_HEADER_LEN
)
)
{
/* Too small packet, drop it. */
if
(
sp
->
pp_flags
&
PP_DEBUG
)
printk
(
KERN_DEBUG
"%s: input packet is too small, %d bytes
\n
"
,
...
...
@@ -473,7 +473,7 @@ static void sppp_lcp_input (struct sppp *sp, struct sk_buff *skb)
u8
*
p
,
opt
[
6
];
u32
rmagic
;
if
(
len
<
4
)
{
if
(
!
pskb_may_pull
(
skb
,
sizeof
(
struct
lcp_header
))
)
{
if
(
sp
->
pp_flags
&
PP_DEBUG
)
printk
(
KERN_WARNING
"%s: invalid lcp packet length: %d bytes
\n
"
,
dev
->
name
,
len
);
...
...
@@ -707,7 +707,9 @@ static void sppp_cisco_input (struct sppp *sp, struct sk_buff *skb)
struct
cisco_packet
*
h
;
struct
net_device
*
dev
=
sp
->
pp_if
;
if
(
skb
->
len
!=
CISCO_PACKET_LEN
&&
skb
->
len
!=
CISCO_BIG_PACKET_LEN
)
{
if
(
!
pskb_may_pull
(
skb
,
sizeof
(
struct
cisco_packet
))
||
(
skb
->
len
!=
CISCO_PACKET_LEN
&&
skb
->
len
!=
CISCO_BIG_PACKET_LEN
))
{
if
(
sp
->
pp_flags
&
PP_DEBUG
)
printk
(
KERN_WARNING
"%s: invalid cisco packet length: %d bytes
\n
"
,
dev
->
name
,
skb
->
len
);
...
...
@@ -1211,8 +1213,7 @@ static void sppp_ipcp_input (struct sppp *sp, struct sk_buff *skb)
struct
net_device
*
dev
=
sp
->
pp_if
;
int
len
=
skb
->
len
;
if
(
len
<
4
)
{
if
(
!
pskb_may_pull
(
skb
,
sizeof
(
struct
lcp_header
)))
{
if
(
sp
->
pp_flags
&
PP_DEBUG
)
printk
(
KERN_WARNING
"%s: invalid ipcp packet length: %d bytes
\n
"
,
dev
->
name
,
len
);
...
...
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