[SCTP]: Verify all the paths to a peer via heartbeat before using them.
This patch implements Path Initialization procedure as described in Sec 2.36 of RFC4460. Signed-off-by: Sridhar Samudrala <sri@us.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
cfdeef3282
commit
ad8fec1720
@@ -445,6 +445,7 @@ typedef struct sctp_sender_hb_info {
|
||||
struct sctp_paramhdr param_hdr;
|
||||
union sctp_addr daddr;
|
||||
unsigned long sent_at;
|
||||
__u64 hb_nonce;
|
||||
} __attribute__((packed)) sctp_sender_hb_info_t;
|
||||
|
||||
/*
|
||||
@@ -984,6 +985,9 @@ struct sctp_transport {
|
||||
*/
|
||||
char cacc_saw_newack;
|
||||
} cacc;
|
||||
|
||||
/* 64-bit random number sent with heartbeat. */
|
||||
__u64 hb_nonce;
|
||||
};
|
||||
|
||||
struct sctp_transport *sctp_transport_new(const union sctp_addr *,
|
||||
|
||||
Reference in New Issue
Block a user