Sriram Yagnaraman and Greg Kroah-Hartman
dc1ccb4c0f
netfilter: conntrack: unify established states for SCTP paths
...
commit a44b765148 upstream.
An SCTP endpoint can start an association through a path and tear it
down over another one. That means the initial path will not see the
shutdown sequence, and the conntrack entry will remain in ESTABLISHED
state for 5 days.
By merging the HEARTBEAT_ACKED and ESTABLISHED states into one
ESTABLISHED state, there remains no difference between a primary or
secondary path. The timeout for the merged ESTABLISHED state is set to
210 seconds (hb_interval * max_path_retrans + rto_max). So, even if a
path doesn't see the shutdown sequence, it will expire in a reasonable
amount of time.
With this change in place, there is now more than one state from which
we can transition to ESTABLISHED, COOKIE_ECHOED and HEARTBEAT_SENT, so
handle the setting of ASSURED bit whenever a state change has happened
and the new state is ESTABLISHED. Removed the check for dir==REPLY since
the transition to ESTABLISHED can happen only in the reply direction.
Fixes: 9fb9cbb108 ("[NETFILTER]: Add nf_conntrack subsystem.")
Signed-off-by: Sriram Yagnaraman <sriram.yagnaraman@est.tech >
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2023-02-01 08:34:51 +01:00
..
2022-06-27 16:16:30 +02:00
2022-09-15 09:08:09 +02:00
2022-09-21 18:42:55 +01:00
2022-06-28 21:26:05 +02:00
2023-02-01 08:34:51 +01:00
2022-06-28 21:26:05 +02:00
2022-06-28 21:26:05 +02:00
2022-06-28 21:26:05 +02:00
2022-08-09 19:51:05 +02:00
2022-06-28 21:26:05 +02:00
2022-09-27 07:48:01 -07:00
2022-08-04 11:41:28 -07:00
2022-04-29 14:38:03 -07:00
2022-05-13 10:56:10 +02:00
2022-08-11 10:31:19 -07:00
2022-10-31 07:29:47 -04:00
2022-06-28 21:26:05 +02:00
2022-10-03 17:44:18 -07:00
2022-06-07 10:20:42 -07:00
2022-09-26 12:28:01 +02:00
2022-09-26 12:28:00 +02:00
2022-05-18 00:11:18 +08:00
2022-09-15 09:08:09 +02:00
2022-11-05 01:25:57 -04:00
2022-05-15 18:31:28 -06:00
2022-09-24 08:50:04 +02:00
2022-09-24 08:50:04 +02:00
2022-06-28 21:26:05 +02:00
2022-09-30 14:32:35 +02:00
2022-06-28 21:26:05 +02:00
2022-07-28 21:56:53 -07:00
2022-08-23 14:54:54 -05:00
2022-08-02 19:50:47 -07:00
2022-06-28 21:26:05 +02:00
2022-06-20 18:21:25 +02:00
2022-08-29 15:32:13 +02:00
2022-06-03 20:09:27 +08:00
2022-07-28 18:05:24 +02:00
2022-10-03 17:33:57 -07:00
2022-10-03 17:33:57 -07:00
2023-01-04 11:28:47 +01:00
2022-08-05 04:17:57 -07:00
2022-08-02 19:50:47 -07:00
2022-06-28 21:26:05 +02:00
2022-06-28 21:26:05 +02:00
2022-06-28 21:26:05 +02:00
2022-06-10 16:40:18 +08:00
2022-09-24 07:00:00 +02:00
2022-08-10 13:49:50 +01:00
2022-05-04 11:06:13 +02:00
2022-09-20 11:53:32 +01:00
2022-12-31 13:32:49 +01:00
2022-06-28 21:26:05 +02:00
2022-06-28 21:26:05 +02:00
2022-09-15 09:08:09 +02:00
2022-10-03 07:52:13 +01:00
2022-08-18 20:37:35 -07:00
2022-06-28 21:26:05 +02:00
2022-09-23 12:02:03 +01:00
2022-06-28 21:26:05 +02:00
2022-11-03 13:44:46 +01:00
2022-06-28 21:26:05 +02:00
2022-06-28 21:26:05 +02:00
2022-09-28 18:31:37 -07:00
2022-07-17 07:52:46 -07:00
2022-12-31 13:33:11 +01:00
2022-06-28 21:26:05 +02:00
2022-11-17 10:42:45 +01:00
2022-11-17 10:42:45 +01:00
2022-06-28 21:26:05 +02:00
2022-06-28 21:26:05 +02:00
2022-06-28 21:26:05 +02:00
2022-06-03 20:09:27 +08:00
2022-07-12 16:50:44 -04:00
2022-09-29 10:23:08 +01:00
2022-09-20 09:13:38 +02:00
2022-09-29 18:43:04 +02:00
2022-05-25 09:51:36 -07:00
2022-07-08 10:46:53 -07:00
2022-05-10 06:30:05 -06:00
2022-08-29 10:44:08 +02:00
2022-08-02 12:34:03 -04:00
2022-05-01 17:45:35 +01:00
2022-06-20 21:15:04 +02:00
2022-06-28 21:26:05 +02:00
2022-06-28 20:45:43 -07:00
2022-06-28 21:26:05 +02:00
2022-06-30 13:14:35 +02:00
2022-06-28 21:26:05 +02:00
2022-09-07 16:46:03 +02:00
2022-09-29 18:39:39 -07:00
2022-09-03 17:04:29 +02:00
2022-05-20 06:17:33 -06:00
2022-08-26 19:31:20 -07:00
2022-07-19 15:38:04 -07:00
2022-10-27 10:27:32 +02:00
2022-09-20 09:13:38 +02:00
2022-09-29 18:52:05 -07:00
2023-01-18 11:58:16 +01:00
2022-06-28 21:26:05 +02:00
2022-05-09 14:00:07 +02:00
2022-09-24 08:31:54 +02:00
2022-06-28 21:26:05 +02:00
2022-06-28 21:26:05 +02:00
2022-06-28 21:26:05 +02:00
2022-05-03 14:11:58 -07:00
2022-08-22 07:52:51 -06:00
2022-08-03 16:29:08 -07:00
2022-09-20 12:33:22 +02:00
2022-06-28 21:26:05 +02:00
2022-07-16 08:16:01 +02:00
2022-06-27 14:41:31 +02:00
2022-06-27 14:44:20 +02:00
2022-07-18 11:19:17 +01:00
2022-07-11 19:48:33 -07:00
2022-06-01 16:48:05 -07:00
2022-09-11 19:47:04 -05:00
2022-06-28 21:26:05 +02:00
2022-12-31 13:32:48 +01:00
2022-06-30 13:14:35 +02:00
2022-06-28 21:26:05 +02:00
2022-06-01 15:55:25 -07:00
2022-09-27 17:29:09 -07:00
2022-06-27 16:25:41 +02:00
2022-05-25 10:08:59 -07:00
2022-09-23 19:09:56 -06:00
2022-06-28 21:26:05 +02:00
2022-08-31 09:07:53 +02:00
2022-09-11 20:25:48 -07:00
2022-08-30 07:32:30 +02:00
2022-10-07 20:00:42 -04:00
2022-08-11 04:26:08 -04:00
2022-07-11 09:54:37 +02:00
2022-09-08 12:59:00 -06:00
2022-08-12 09:50:34 -07:00
2022-08-11 04:31:15 -04:00
2022-10-25 16:40:07 +01:00
2022-06-28 21:26:05 +02:00
2022-10-07 09:32:41 -04:00
2022-08-11 04:06:40 -04:00
2022-05-10 07:22:28 -04:00
2022-08-30 22:44:25 -07:00
2022-08-11 04:06:40 -04:00
2022-08-16 01:40:24 -04:00
2022-08-24 12:51:50 +01:00