]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: remove the old ttl expires policy
authorXin Long <lucien.xin@gmail.com>
Sat, 8 Oct 2016 03:40:16 +0000 (11:40 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Oct 2016 13:44:14 +0000 (09:44 -0400)
commitcca6ade4400a8bd85c05d5e43e58987ac79bed6b
tree37ae6963e4a2aa197ac03d9720b3a5e8cd9d13eb
parentc16bae87ef68f68c44494e6f852f66e40c18e4c6
sctp: remove the old ttl expires policy

The prsctp polices include ttl expires policy already, we should remove
the old ttl expires codes, and just adjust the new polices' codes to be
compatible with the old one for users.

This patch is to remove all the old expires codes, and if prsctp polices
are not set, it will still set msg's expires_at and check the expires in
sctp_check_abandoned.

Note that asoc->prsctp_enable is set by default, so users can't feel any
difference even if they use the old expires api in userspace.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sctp/structs.h
net/sctp/chunk.c
net/sctp/output.c