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
88799fe5
Commit
88799fe5
authored
Oct 24, 2007
by
Vlad Yasevich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SCTP: Correctly disable ADD-IP when AUTH is not supported.
Signed-off-by:
Vlad Yasevich
<
vladislav.yasevich@hp.com
>
parent
0ed90fb0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
include/net/sctp/structs.h
include/net/sctp/structs.h
+0
-1
net/sctp/associola.c
net/sctp/associola.c
+1
-1
net/sctp/sm_make_chunk.c
net/sctp/sm_make_chunk.c
+3
-2
No files found.
include/net/sctp/structs.h
View file @
88799fe5
...
@@ -1540,7 +1540,6 @@ struct sctp_association {
...
@@ -1540,7 +1540,6 @@ struct sctp_association {
__u8
asconf_capable
;
/* Does peer support ADDIP? */
__u8
asconf_capable
;
/* Does peer support ADDIP? */
__u8
prsctp_capable
;
/* Can peer do PR-SCTP? */
__u8
prsctp_capable
;
/* Can peer do PR-SCTP? */
__u8
auth_capable
;
/* Is peer doing SCTP-AUTH? */
__u8
auth_capable
;
/* Is peer doing SCTP-AUTH? */
__u8
addip_capable
;
/* Can peer do ADD-IP */
__u32
adaptation_ind
;
/* Adaptation Code point. */
__u32
adaptation_ind
;
/* Adaptation Code point. */
...
...
net/sctp/associola.c
View file @
88799fe5
...
@@ -265,7 +265,7 @@ static struct sctp_association *sctp_association_init(struct sctp_association *a
...
@@ -265,7 +265,7 @@ static struct sctp_association *sctp_association_init(struct sctp_association *a
/* Assume that the peer recongizes ASCONF until reported otherwise
/* Assume that the peer recongizes ASCONF until reported otherwise
* via an ERROR chunk.
* via an ERROR chunk.
*/
*/
asoc
->
peer
.
asconf_capable
=
1
;
asoc
->
peer
.
asconf_capable
=
0
;
/* Create an input queue. */
/* Create an input queue. */
sctp_inq_init
(
&
asoc
->
base
.
inqueue
);
sctp_inq_init
(
&
asoc
->
base
.
inqueue
);
...
...
net/sctp/sm_make_chunk.c
View file @
88799fe5
...
@@ -1847,7 +1847,7 @@ static void sctp_process_ext_param(struct sctp_association *asoc,
...
@@ -1847,7 +1847,7 @@ static void sctp_process_ext_param(struct sctp_association *asoc,
break
;
break
;
case
SCTP_CID_ASCONF
:
case
SCTP_CID_ASCONF
:
case
SCTP_CID_ASCONF_ACK
:
case
SCTP_CID_ASCONF_ACK
:
asoc
->
peer
.
a
ddip
_capable
=
1
;
asoc
->
peer
.
a
sconf
_capable
=
1
;
break
;
break
;
default:
default:
break
;
break
;
...
@@ -2138,10 +2138,11 @@ int sctp_process_init(struct sctp_association *asoc, sctp_cid_t cid,
...
@@ -2138,10 +2138,11 @@ int sctp_process_init(struct sctp_association *asoc, sctp_cid_t cid,
/* If the peer claims support for ADD-IP without support
/* If the peer claims support for ADD-IP without support
* for AUTH, disable support for ADD-IP.
* for AUTH, disable support for ADD-IP.
*/
*/
if
(
asoc
->
peer
.
a
ddip
_capable
&&
!
asoc
->
peer
.
auth_capable
)
{
if
(
asoc
->
peer
.
a
sconf
_capable
&&
!
asoc
->
peer
.
auth_capable
)
{
asoc
->
peer
.
addip_disabled_mask
|=
(
SCTP_PARAM_ADD_IP
|
asoc
->
peer
.
addip_disabled_mask
|=
(
SCTP_PARAM_ADD_IP
|
SCTP_PARAM_DEL_IP
|
SCTP_PARAM_DEL_IP
|
SCTP_PARAM_SET_PRIMARY
);
SCTP_PARAM_SET_PRIMARY
);
asoc
->
peer
.
asconf_capable
=
0
;
}
}
/* Walk list of transports, removing transports in the UNKNOWN state. */
/* Walk list of transports, removing transports in the UNKNOWN state. */
...
...
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