Skip to contentSkip to conversation

sctp: Process OOTB ASCONF Chunk at CLOSED state

PATCH In review Shan Wei 2 participants 2 messages Jul 23, 2010

Subsystems (2)
lore
Share & tools
lore

Shan Wei

author
#0 lore raw

PATCH 1/1 sctp: Process OOTB ASCONF Chunk at CLOSED state

RFC5061 said that If the received ASCONF Chunk is not associated with any association, the Chunk should be treated as OOTB. So, process this OOTB chunk according to section 8.4 of RFC4960.

Quote from RFC5061:
5.2. Upon Reception of an ASCONF Chunk
D3) If neither D1, D2, nor D2-ext locates the association, treat the
chunk as an Out Of The Blue packet as defined in [RFC4960].

---
 net/sctp/sm_statetable.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
net/sctp/sm_statetable.c +1 -1
index 6d9b3aa..ca300db 100644
@@ -449,7 +449,7 @@ static const sctp_sm_table_entry_t chunk_event_table[SCTP_NUM_BASE_CHUNK_TYPES][
 	/* SCTP_STATE_EMPTY */ \
 	TYPE_SCTP_FUNC(sctp_sf_ootb), \
 	/* SCTP_STATE_CLOSED */ \
-	TYPE_SCTP_FUNC(sctp_sf_discard_chunk), \
+	TYPE_SCTP_FUNC(sctp_sf_ootb), \
 	/* SCTP_STATE_COOKIE_WAIT */ \
 	TYPE_SCTP_FUNC(sctp_sf_discard_chunk), \
 	/* SCTP_STATE_COOKIE_ECHOED */ \
Signature · 1 line
1.6.3.3
#1 lore raw
Quoted 20 lines · Shan Wei

RFC5061 said that If the received ASCONF Chunk is not associated with any association, the Chunk should be treated as OOTB. So, process this OOTB chunk according to section 8.4 of RFC4960.

Quote from RFC5061:
5.2. Upon Reception of an ASCONF Chunk
D3) If neither D1, D2, nor D2-ext locates the association, treat the
chunk as an Out Of The Blue packet as defined in [RFC4960].

---
 net/sctp/sm_statetable.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
net/sctp/sm_statetable.c +0 -0
index 6d9b3aa..ca300db 100644

net/sctp/sm_statetable.c static const sctp_sm_table_entry_t chunk_event_table[SCTP_NUM_BASE_CHUNK_TYPES][ · line 455

Quoted 8 lines
net/sctp/sm_statetable.c +1 -1
@@ -449,7 +449,7 @@ static const sctp_sm_table_entry_t chunk_event_table[SCTP_NUM_BASE_CHUNK_TYPES][
 	/* SCTP_STATE_EMPTY */ \
 	TYPE_SCTP_FUNC(sctp_sf_ootb), \
 	/* SCTP_STATE_CLOSED */ \
-	TYPE_SCTP_FUNC(sctp_sf_discard_chunk), \
+	TYPE_SCTP_FUNC(sctp_sf_ootb), \
 	/* SCTP_STATE_COOKIE_WAIT */ \
 	TYPE_SCTP_FUNC(sctp_sf_discard_chunk), \
 	/* SCTP_STATE_COOKIE_ECHOED */ \

Same should probably be done for ASCONF_ACK as well....

-vlad