sctp: add basic structures and make chunk function for idata
authorXin Long <lucien.xin@gmail.com>
Fri, 8 Dec 2017 13:04:00 +0000 (21:04 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Dec 2017 16:23:04 +0000 (11:23 -0500)
commitad05a7a05ede28ba6dd935d9e932264a22518b1f
tree9a60d1b471879cce652cd1eeae0f0735913aa039
parent96b120b3c1397c90b64d1f4b2300fb7ce4aa8a68
sctp: add basic structures and make chunk function for idata

sctp_idatahdr and sctp_idata_chunk are used to define and parse
I-DATA chunk format, and sctp_make_idata is a function to build
the chunk.

The I-DATA Chunk Format is defined in section 2.1 of RFC8260.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/sctp.h
include/net/sctp/sm.h
include/net/sctp/structs.h
net/sctp/sm_make_chunk.c