summaryrefslogtreecommitdiffstats
path: root/src/vnet/tcp/tcp_output.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2019-06-18 08:55:14 -0700
committerFlorin Coras <florin.coras@gmail.com>2019-06-18 19:18:53 +0000
commit540a8dacbe0da88fde97a6c1201d6e1ba95c5cf6 (patch)
treef0c9fe069826acda116d6f10db68ba2a294e0622 /src/vnet/tcp/tcp_output.c
parentb54a599f3815954e17b370ffb203cb790b628513 (diff)
tcp: allow custom output next node
Type: feature Change-Id: If9804d3685d2a52efa06e412ae1ebb39c6a44b8b Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/tcp/tcp_output.c')
-rw-r--r--src/vnet/tcp/tcp_output.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vnet/tcp/tcp_output.c b/src/vnet/tcp/tcp_output.c
index 77065cd5200..abd674d94be 100644
--- a/src/vnet/tcp/tcp_output.c
+++ b/src/vnet/tcp/tcp_output.c
@@ -2062,6 +2062,9 @@ tcp_output_handle_packet (tcp_connection_t * tc0, vlib_buffer_t * b0,
return;
}
+ /* If next_index is not drop use it */
+ *next0 = tc0->out_next_index ? tc0->out_next_index : *next0;
+
vnet_buffer (b0)->sw_if_index[VLIB_TX] = tc0->c_fib_index;
vnet_buffer (b0)->sw_if_index[VLIB_RX] = 0;