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
63c1af84
Commit
63c1af84
authored
Jun 20, 2003
by
Jon Grimm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SCTP] OOTB Cookie-Echo path does not like stale cookie vtag fix.
Move fix out of generic path, into the stale cookie path.
parent
d17bfc41
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
net/sctp/sm_statefuns.c
net/sctp/sm_statefuns.c
+6
-8
No files found.
net/sctp/sm_statefuns.c
View file @
63c1af84
...
...
@@ -4511,14 +4511,6 @@ struct sctp_packet *sctp_ootb_pkt_new(const struct sctp_association *asoc,
vtag
=
ntohl
(
init
->
init_hdr
.
init_tag
);
break
;
}
case
SCTP_CID_COOKIE_ECHO
:
{
sctp_signed_cookie_t
*
cookie
;
cookie
=
chunk
->
subh
.
cookie_hdr
;
vtag
=
cookie
->
c
.
peer_vtag
;
break
;
}
default:
vtag
=
ntohl
(
chunk
->
sctp_hdr
->
vtag
);
break
;
...
...
@@ -4572,6 +4564,12 @@ void sctp_send_stale_cookie_err(const struct sctp_endpoint *ep,
if
(
err_chunk
)
{
packet
=
sctp_ootb_pkt_new
(
asoc
,
chunk
);
if
(
packet
)
{
sctp_signed_cookie_t
*
cookie
;
/* Override the OOTB vtag from the cookie. */
cookie
=
chunk
->
subh
.
cookie_hdr
;
packet
->
vtag
=
cookie
->
c
.
peer_vtag
;
/* Set the skb to the belonging sock for accounting. */
err_chunk
->
skb
->
sk
=
ep
->
base
.
sk
;
sctp_packet_append_chunk
(
packet
,
err_chunk
);
...
...
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