3 Mar 2010 08:08
Question about SCTP AUTH information structure (SCTP_AUTHINFO)
Wei Yongjun <yjwei <at> cn.fujitsu.com>
2010-03-03 07:08:06 GMT
2010-03-03 07:08:06 GMT
Content-Type: text/plain; charset=GB2312
Content-Transfer-Encoding: 7bit
Hi all:
The draft-ietf-tsvwg-sctpsocket-21.txt include the following test:
5.2.8. SCTP AUTH Information Structure (SCTP_AUTHINFO)
This cmsghdr structure specifies SCTP options for sendmsg().
+--------------+---------------+----------------------+
| cmsg_level | cmsg_type | cmsg_data[] |
+--------------+---------------+----------------------+
| IPPROTO_SCTP | SCTP_AUTHINFO | struct sctp_authinfo |
+--------------+---------------+----------------------+
Here is the definition of the sctp_authinfo structure:
struct sctp_authinfo {
uint16_t auth_keyid;
};
auth_keyid: This specifies the shared key identifier used for
sending the user message.
An sctp_authinfo item always corresponds to the data in msg_iov.
What is the action when the user DATA chunk be bundled with other
(Continue reading)
So when I send down a key with a message only that message
gets the key... interesting... Is this useful for some reason?
I mean why not just change the key??
R
On Mar 5, 2010, at 4:41 AM, Michael Tuexen wrote:
> On Mar 5, 2010, at 1:34 PM, Randy Stewart wrote:
>
>> Yongjun-san
>>
>> I believe when you send with this option you are changing the
>> key number that you are using. So any new chunks sent at that
>> point that are auth'd are now using the new key. If each
> NO. it only allies to the message you sent down.
>> send specified a different key you would end up with the maybe the
>> last
>> key as the active one.
>>
>> At least that is my guess.. Michael?
> When you use the SCTP_AUTHINFO it does only apply to the message
> you are currently sending. When you want to change the "default",
> you use the SCTP_AUTH_ACTIVE_KEY socket option.
>
> Best regards
> Michael
RSS Feed