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
5798bbd9
Commit
5798bbd9
authored
Jul 09, 2003
by
Stephen Hemminger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NET]: PPP handling fragmented skbuffs.
parent
b28ae60c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
drivers/net/ppp_generic.c
drivers/net/ppp_generic.c
+3
-3
No files found.
drivers/net/ppp_generic.c
View file @
5798bbd9
...
@@ -844,7 +844,7 @@ ppp_start_xmit(struct sk_buff *skb, struct net_device *dev)
...
@@ -844,7 +844,7 @@ ppp_start_xmit(struct sk_buff *skb, struct net_device *dev)
if
(
ns
==
0
)
if
(
ns
==
0
)
goto
outf
;
goto
outf
;
skb_reserve
(
ns
,
dev
->
hard_header_len
);
skb_reserve
(
ns
,
dev
->
hard_header_len
);
memcpy
(
skb_put
(
ns
,
skb
->
len
),
skb
->
data
,
skb
->
len
);
skb_copy_bits
(
skb
,
0
,
skb_put
(
ns
,
skb
->
len
)
,
skb
->
len
);
kfree_skb
(
skb
);
kfree_skb
(
skb
);
skb
=
ns
;
skb
=
ns
;
}
}
...
@@ -1455,7 +1455,7 @@ ppp_receive_nonmp_frame(struct ppp *ppp, struct sk_buff *skb)
...
@@ -1455,7 +1455,7 @@ ppp_receive_nonmp_frame(struct ppp *ppp, struct sk_buff *skb)
goto
err
;
goto
err
;
}
}
skb_reserve
(
ns
,
2
);
skb_reserve
(
ns
,
2
);
memcpy
(
skb_put
(
ns
,
skb
->
len
),
skb
->
data
,
skb
->
len
);
skb_copy_bits
(
skb
,
0
,
skb_put
(
ns
,
skb
->
len
)
,
skb
->
len
);
kfree_skb
(
skb
);
kfree_skb
(
skb
);
skb
=
ns
;
skb
=
ns
;
}
}
...
@@ -1826,7 +1826,7 @@ ppp_mp_reconstruct(struct ppp *ppp)
...
@@ -1826,7 +1826,7 @@ ppp_mp_reconstruct(struct ppp *ppp)
if
(
head
!=
tail
)
if
(
head
!=
tail
)
/* copy to a single skb */
/* copy to a single skb */
for
(
p
=
head
;
p
!=
tail
->
next
;
p
=
p
->
next
)
for
(
p
=
head
;
p
!=
tail
->
next
;
p
=
p
->
next
)
memcpy
(
skb_put
(
skb
,
p
->
len
),
p
->
data
,
p
->
len
);
skb_copy_bits
(
p
,
0
,
skb_put
(
skb
,
p
->
len
)
,
p
->
len
);
ppp
->
nextseq
=
tail
->
sequence
+
1
;
ppp
->
nextseq
=
tail
->
sequence
+
1
;
head
=
tail
->
next
;
head
=
tail
->
next
;
}
}
...
...
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