Subject: when SCTP_ADDR_MADE_PRIM set?

From: KOZUKA Masahiro <[email-masked]>
Date: Sat, 19 Mar 2005 07:51:56 +0900

Hi,
I have a question about SCTP_ADDR_MADE_PRIM in struct sctp_paddr_change,
when this state should be returned.

At least, in receiving a ASCONF indicating "Set Primary IP Address"
this state should be notified to applications, I think.
Because this is analogous to "Add IP Address" or "Delete IP Address".

In the case of changing the primary address because of multiple RTOs,
however, should SCTP_ADDR_MADE_PRIM notified?
And in the case of the change because of setsockopt(SCTP_PRIMARY_ADDR)?

My opinion is that SCTP_ADDR_MADE_PRIM should be notified In the both cases.
Because the former change is triggered by Kernel, and Kernel should notify
as many events as possible if applications desire, I think.
The latter doesn't fit this reason. But if the former only returned,
we couldn't understand when SCTP_ADDR_MADE_PRIM will return easily.
This distinction is too complex. So, in the both cases,
SCTP_ADDR_MADE_PRIM should be retuened, i think.

What dou you think?

Regards, Masahiro.
-- 
		--KOZUKA Masahiro, {^-^}/@kozuka.jp, http://www.kozuka.jp/