diff options
author | Vlad Yasevich <vladislav.yasevich@hp.com> | 2007-09-16 22:35:39 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:51:33 -0400 |
commit | 6b2f9cb64db2d2460da17900bf54266030cc24f1 (patch) | |
tree | 1aa95cba41e7dc9071fe1773a567822b60d71f35 /include/net | |
parent | 65b07e5d0d09c77e98050b5f0146ead29e5add32 (diff) |
[SCTP]: Tie ADD-IP and AUTH functionality as required by spec.
ADD-IP spec requires AUTH. It is, in fact, dangerous without AUTH.
So, disable ADD-IP functionality if the peer claims to support
ADD-IP, but not AUTH.
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/sctp/structs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/sctp/structs.h b/include/net/sctp/structs.h index 47e54f8e2b65..448f713a0205 100644 --- a/include/net/sctp/structs.h +++ b/include/net/sctp/structs.h | |||
@@ -1543,6 +1543,7 @@ struct sctp_association { | |||
1543 | __u8 asconf_capable; /* Does peer support ADDIP? */ | 1543 | __u8 asconf_capable; /* Does peer support ADDIP? */ |
1544 | __u8 prsctp_capable; /* Can peer do PR-SCTP? */ | 1544 | __u8 prsctp_capable; /* Can peer do PR-SCTP? */ |
1545 | __u8 auth_capable; /* Is peer doing SCTP-AUTH? */ | 1545 | __u8 auth_capable; /* Is peer doing SCTP-AUTH? */ |
1546 | __u8 addip_capable; /* Can peer do ADD-IP */ | ||
1546 | 1547 | ||
1547 | __u32 adaptation_ind; /* Adaptation Code point. */ | 1548 | __u32 adaptation_ind; /* Adaptation Code point. */ |
1548 | 1549 | ||