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
Kirill Smelkov
linux
Commits
d17bfc41
Commit
d17bfc41
authored
Jun 12, 2003
by
Sridhar Samudrala
Committed by
Jon Grimm
Jun 12, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SCTP] Fix for incorrect vtag in the stale cookie ERROR chunk.
parent
cc1ff32a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
3 deletions
+19
-3
net/sctp/sm_statefuns.c
net/sctp/sm_statefuns.c
+19
-3
No files found.
net/sctp/sm_statefuns.c
View file @
d17bfc41
...
...
@@ -4499,13 +4499,29 @@ struct sctp_packet *sctp_ootb_pkt_new(const struct sctp_association *asoc,
if
(
asoc
)
{
vtag
=
asoc
->
peer
.
i
.
init_tag
;
}
else
{
/* Special case the INIT as there is no vtag yet. */
if
(
SCTP_CID_INIT
==
chunk
->
chunk_hdr
->
type
)
{
/* Special case the INIT and stale COOKIE_ECHO as there is no
* vtag yet.
*/
switch
(
chunk
->
chunk_hdr
->
type
)
{
case
SCTP_CID_INIT
:
{
sctp_init_chunk_t
*
init
;
init
=
(
sctp_init_chunk_t
*
)
chunk
->
chunk_hdr
;
vtag
=
ntohl
(
init
->
init_hdr
.
init_tag
);
}
else
{
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
;
}
}
...
...
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