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
d1cd8a96
Commit
d1cd8a96
authored
May 15, 2003
by
Sridhar Samudrala
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SCTP] SCTP_SHUTDOWN_EVENT notification support.
parent
139b2566
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
net/sctp/sm_statefuns.c
net/sctp/sm_statefuns.c
+17
-0
No files found.
net/sctp/sm_statefuns.c
View file @
d1cd8a96
...
@@ -2059,6 +2059,7 @@ sctp_disposition_t sctp_sf_do_9_2_shutdown(const struct sctp_endpoint *ep,
...
@@ -2059,6 +2059,7 @@ sctp_disposition_t sctp_sf_do_9_2_shutdown(const struct sctp_endpoint *ep,
struct
sctp_chunk
*
chunk
=
arg
;
struct
sctp_chunk
*
chunk
=
arg
;
sctp_shutdownhdr_t
*
sdh
;
sctp_shutdownhdr_t
*
sdh
;
sctp_disposition_t
disposition
;
sctp_disposition_t
disposition
;
struct
sctp_ulpevent
*
ev
;
/* Convert the elaborate header. */
/* Convert the elaborate header. */
sdh
=
(
sctp_shutdownhdr_t
*
)
chunk
->
skb
->
data
;
sdh
=
(
sctp_shutdownhdr_t
*
)
chunk
->
skb
->
data
;
...
@@ -2089,12 +2090,28 @@ sctp_disposition_t sctp_sf_do_9_2_shutdown(const struct sctp_endpoint *ep,
...
@@ -2089,12 +2090,28 @@ sctp_disposition_t sctp_sf_do_9_2_shutdown(const struct sctp_endpoint *ep,
arg
,
commands
);
arg
,
commands
);
}
}
if
(
SCTP_DISPOSITION_NOMEM
==
disposition
)
goto
out
;
/* - verify, by checking the Cumulative TSN Ack field of the
/* - verify, by checking the Cumulative TSN Ack field of the
* chunk, that all its outstanding DATA chunks have been
* chunk, that all its outstanding DATA chunks have been
* received by the SHUTDOWN sender.
* received by the SHUTDOWN sender.
*/
*/
sctp_add_cmd_sf
(
commands
,
SCTP_CMD_PROCESS_CTSN
,
sctp_add_cmd_sf
(
commands
,
SCTP_CMD_PROCESS_CTSN
,
SCTP_U32
(
chunk
->
subh
.
shutdown_hdr
->
cum_tsn_ack
));
SCTP_U32
(
chunk
->
subh
.
shutdown_hdr
->
cum_tsn_ack
));
/* API 5.3.1.5 SCTP_SHUTDOWN_EVENT
* When a peer sends a SHUTDOWN, SCTP delivers this notification to
* inform the application that it should cease sending data.
*/
ev
=
sctp_ulpevent_make_shutdown_event
(
asoc
,
0
,
GFP_ATOMIC
);
if
(
!
ev
)
{
disposition
=
SCTP_DISPOSITION_NOMEM
;
goto
out
;
}
sctp_add_cmd_sf
(
commands
,
SCTP_CMD_EVENT_ULP
,
SCTP_ULPEVENT
(
ev
));
out:
return
disposition
;
return
disposition
;
}
}
...
...
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