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
13ee2364
Commit
13ee2364
authored
Jun 03, 2004
by
Sridhar Samudrala
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SCTP] Fix the use of cached non-zero vtag in an INIT that is resent
after a stale cookie error.
parent
9d6498b1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
0 deletions
+7
-0
include/net/sctp/command.h
include/net/sctp/command.h
+1
-0
net/sctp/sm_sideeffect.c
net/sctp/sm_sideeffect.c
+3
-0
net/sctp/sm_statefuns.c
net/sctp/sm_statefuns.c
+3
-0
No files found.
include/net/sctp/command.h
View file @
13ee2364
...
@@ -93,6 +93,7 @@ typedef enum {
...
@@ -93,6 +93,7 @@ typedef enum {
SCTP_CMD_PROCESS_OPERR
,
/* Process an ERROR chunk. */
SCTP_CMD_PROCESS_OPERR
,
/* Process an ERROR chunk. */
SCTP_CMD_REPORT_FWDTSN
,
/* Report new cumulative TSN Ack. */
SCTP_CMD_REPORT_FWDTSN
,
/* Report new cumulative TSN Ack. */
SCTP_CMD_PROCESS_FWDTSN
,
/* Skips were reported, so process further. */
SCTP_CMD_PROCESS_FWDTSN
,
/* Skips were reported, so process further. */
SCTP_CMD_CLEAR_INIT_TAG
,
/* Clears association peer's inittag. */
SCTP_CMD_LAST
SCTP_CMD_LAST
}
sctp_verb_t
;
}
sctp_verb_t
;
...
...
net/sctp/sm_sideeffect.c
View file @
13ee2364
...
@@ -1272,6 +1272,9 @@ int sctp_cmd_interpreter(sctp_event_t event_type, sctp_subtype_t subtype,
...
@@ -1272,6 +1272,9 @@ int sctp_cmd_interpreter(sctp_event_t event_type, sctp_subtype_t subtype,
case
SCTP_CMD_PROCESS_OPERR
:
case
SCTP_CMD_PROCESS_OPERR
:
sctp_cmd_process_operr
(
commands
,
asoc
,
chunk
);
sctp_cmd_process_operr
(
commands
,
asoc
,
chunk
);
break
;
break
;
case
SCTP_CMD_CLEAR_INIT_TAG
:
asoc
->
peer
.
i
.
init_tag
=
0
;
break
;
default:
default:
printk
(
KERN_WARNING
"Impossible command: %u, %p
\n
"
,
printk
(
KERN_WARNING
"Impossible command: %u, %p
\n
"
,
cmd
->
verb
,
cmd
->
obj
.
ptr
);
cmd
->
verb
,
cmd
->
obj
.
ptr
);
...
...
net/sctp/sm_statefuns.c
View file @
13ee2364
...
@@ -1908,6 +1908,9 @@ sctp_disposition_t sctp_sf_do_5_2_6_stale(const struct sctp_endpoint *ep,
...
@@ -1908,6 +1908,9 @@ sctp_disposition_t sctp_sf_do_5_2_6_stale(const struct sctp_endpoint *ep,
sctp_addto_chunk
(
reply
,
sizeof
(
bht
),
&
bht
);
sctp_addto_chunk
(
reply
,
sizeof
(
bht
),
&
bht
);
/* Clear peer's init_tag cached in assoc as we are sending a new INIT */
sctp_add_cmd_sf
(
commands
,
SCTP_CMD_CLEAR_INIT_TAG
,
SCTP_NULL
());
/* Cast away the const modifier, as we want to just
/* Cast away the const modifier, as we want to just
* rerun it through as a sideffect.
* rerun it through as a sideffect.
*/
*/
...
...
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