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
8324c812
Commit
8324c812
authored
May 17, 2003
by
Mitsuru Kanda
Committed by
David S. Miller
May 17, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPSEC]: Fix ipv4 ipcomp threshold calculation.
parent
4ced188b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
net/ipv4/ipcomp.c
net/ipv4/ipcomp.c
+6
-1
No files found.
net/ipv4/ipcomp.c
View file @
8324c812
...
...
@@ -155,6 +155,7 @@ static int ipcomp_output(struct sk_buff *skb)
struct
iphdr
iph
;
char
buf
[
60
];
}
tmp_iph
;
int
hdr_len
=
0
;
if
(
skb
->
ip_summed
==
CHECKSUM_HW
&&
skb_checksum_help
(
skb
)
==
NULL
)
{
err
=
-
EINVAL
;
...
...
@@ -167,7 +168,11 @@ static int ipcomp_output(struct sk_buff *skb)
goto
error
;
/* Don't bother compressing */
if
(
skb
->
len
<
ipcd
->
threshold
)
{
if
(
!
x
->
props
.
mode
)
{
iph
=
skb
->
nh
.
iph
;
hdr_len
=
iph
->
ihl
*
4
;
}
if
((
skb
->
len
-
hdr_len
)
<
ipcd
->
threshold
)
{
if
(
x
->
props
.
mode
)
{
ipcomp_tunnel_encap
(
x
,
skb
);
iph
=
skb
->
nh
.
iph
;
...
...
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