summaryrefslogtreecommitdiffstats
path: root/src/vnet/sctp/sctp.c
diff options
context:
space:
mode:
authorFilip Tehlar <ftehlar@cisco.com>2019-03-05 06:50:19 -0800
committerDamjan Marion <dmarion@me.com>2019-03-06 11:37:57 +0000
commita5a458f3807f549c2519781c7a08d30cbfce0bf0 (patch)
treedc65198a1a972aa979f2cedd2bfe1cf7ab3c2787 /src/vnet/sctp/sctp.c
parent4ed003958f2db1c9c662f3976e725a43af9c7667 (diff)
sctp: migrate old MULTIARCH macros to VLIB_NODE_FN
Change-Id: I7248a94977fe11bbe58db53d7ca8ae8c582e7305 Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'src/vnet/sctp/sctp.c')
-rw-r--r--src/vnet/sctp/sctp.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vnet/sctp/sctp.c b/src/vnet/sctp/sctp.c
index f84996186e0..08285e42ba5 100644
--- a/src/vnet/sctp/sctp.c
+++ b/src/vnet/sctp/sctp.c
@@ -970,6 +970,12 @@ sctp_init (vlib_main_t * vm)
sctp_main_t *tm = vnet_get_sctp_main ();
ip_main_t *im = &ip_main;
ip_protocol_info_t *pi;
+ vlib_node_t *node = vlib_get_node_by_name (vm, (u8 *) "sctp4-established");
+ tm->sctp4_established_phase_node_index = node->index;
+
+ node = vlib_get_node_by_name (vm, (u8 *) "sctp6-established");
+ tm->sctp6_established_phase_node_index = node->index;
+
/* Session layer, and by implication SCTP, are disabled by default */
tm->is_enabled = 0;