diff options
author | Florin Coras <fcoras@cisco.com> | 2020-03-17 17:09:12 +0000 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2020-03-19 15:44:04 +0000 |
commit | 27bb99ec804afc5977897fe97043735a508c4a78 (patch) | |
tree | 9fdf0d3f0a5307a5bbb2d3206d211fcf73f9d489 /src/vnet/tcp/tcp.h | |
parent | 6080e0d15e152e38811b01306eef6719a682c007 (diff) |
tcp: move accept init to separate reusable function
Type: refactor
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I5120eb321e9e2050eb64dca9e2dfb6256ff2b62d
Diffstat (limited to 'src/vnet/tcp/tcp.h')
-rw-r--r-- | src/vnet/tcp/tcp.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/vnet/tcp/tcp.h b/src/vnet/tcp/tcp.h index 4db6040ae64..99880696937 100644 --- a/src/vnet/tcp/tcp.h +++ b/src/vnet/tcp/tcp.h @@ -1301,6 +1301,14 @@ tcp_cc_data (tcp_connection_t * tc) void newreno_rcv_cong_ack (tcp_connection_t * tc, tcp_cc_ack_t ack_type, tcp_rate_sample_t * rs); +/** + * Initialize connection by gleaning network and rcv params from buffer + * + * @param tc connection to initialize + * @param b buffer whose current data is pointing at ip + * @param is_ip4 flag set to 1 if using ip4 + */ +void tcp_init_w_buffer (tcp_connection_t * tc, vlib_buffer_t * b, u8 is_ip4); /** * Push TCP header to buffer |