]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: implement prsctp TTL policy
authorXin Long <lucien.xin@gmail.com>
Sat, 9 Jul 2016 11:47:43 +0000 (19:47 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Jul 2016 20:25:39 +0000 (13:25 -0700)
commit0114c198730ee5923192f0ce1e183f14462183c0
tree2426d5ab4b3f7b3b4df82330a0df707a65477736
parent56bf0bd7b3adbc3dc90ca8d8c989660e29d36112
sctp: implement prsctp TTL policy

prsctp TTL policy is a policy to abandon chunks when they expire
at the specific time in local stack. It's similar with expires_at
in struct sctp_datamsg.

This patch uses sinfo->sinfo_timetolive to set the specific time for
TTL policy. sinfo->sinfo_timetolive is also used for msg->expires_at.
So if prsctp_enable or TTL policy is not enabled, msg->expires_at
still works as before.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sctp/structs.h
net/sctp/chunk.c
net/sctp/output.c
net/sctp/sm_make_chunk.c
net/sctp/socket.c