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
3d7dbeac
Commit
3d7dbeac
authored
Jun 12, 2007
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TCP]: Disable TSO if MD5SIG is enabled.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
606f585e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
net/ipv4/tcp_ipv4.c
net/ipv4/tcp_ipv4.c
+2
-1
net/ipv6/tcp_ipv6.c
net/ipv6/tcp_ipv6.c
+2
-0
No files found.
net/ipv4/tcp_ipv4.c
View file @
3d7dbeac
...
@@ -878,6 +878,7 @@ int tcp_v4_md5_do_add(struct sock *sk, __be32 addr,
...
@@ -878,6 +878,7 @@ int tcp_v4_md5_do_add(struct sock *sk, __be32 addr,
kfree
(
newkey
);
kfree
(
newkey
);
return
-
ENOMEM
;
return
-
ENOMEM
;
}
}
sk
->
sk_route_caps
&=
~
NETIF_F_GSO_MASK
;
}
}
if
(
tcp_alloc_md5sig_pool
()
==
NULL
)
{
if
(
tcp_alloc_md5sig_pool
()
==
NULL
)
{
kfree
(
newkey
);
kfree
(
newkey
);
...
@@ -1007,7 +1008,7 @@ static int tcp_v4_parse_md5_keys(struct sock *sk, char __user *optval,
...
@@ -1007,7 +1008,7 @@ static int tcp_v4_parse_md5_keys(struct sock *sk, char __user *optval,
return
-
EINVAL
;
return
-
EINVAL
;
tp
->
md5sig_info
=
p
;
tp
->
md5sig_info
=
p
;
sk
->
sk_route_caps
&=
~
NETIF_F_GSO_MASK
;
}
}
newkey
=
kmemdup
(
cmd
.
tcpm_key
,
cmd
.
tcpm_keylen
,
GFP_KERNEL
);
newkey
=
kmemdup
(
cmd
.
tcpm_key
,
cmd
.
tcpm_keylen
,
GFP_KERNEL
);
...
...
net/ipv6/tcp_ipv6.c
View file @
3d7dbeac
...
@@ -590,6 +590,7 @@ static int tcp_v6_md5_do_add(struct sock *sk, struct in6_addr *peer,
...
@@ -590,6 +590,7 @@ static int tcp_v6_md5_do_add(struct sock *sk, struct in6_addr *peer,
kfree
(
newkey
);
kfree
(
newkey
);
return
-
ENOMEM
;
return
-
ENOMEM
;
}
}
sk
->
sk_route_caps
&=
~
NETIF_F_GSO_MASK
;
}
}
tcp_alloc_md5sig_pool
();
tcp_alloc_md5sig_pool
();
if
(
tp
->
md5sig_info
->
alloced6
==
tp
->
md5sig_info
->
entries6
)
{
if
(
tp
->
md5sig_info
->
alloced6
==
tp
->
md5sig_info
->
entries6
)
{
...
@@ -724,6 +725,7 @@ static int tcp_v6_parse_md5_keys (struct sock *sk, char __user *optval,
...
@@ -724,6 +725,7 @@ static int tcp_v6_parse_md5_keys (struct sock *sk, char __user *optval,
return
-
ENOMEM
;
return
-
ENOMEM
;
tp
->
md5sig_info
=
p
;
tp
->
md5sig_info
=
p
;
sk
->
sk_route_caps
&=
~
NETIF_F_GSO_MASK
;
}
}
newkey
=
kmemdup
(
cmd
.
tcpm_key
,
cmd
.
tcpm_keylen
,
GFP_KERNEL
);
newkey
=
kmemdup
(
cmd
.
tcpm_key
,
cmd
.
tcpm_keylen
,
GFP_KERNEL
);
...
...
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