tcp: completed trace functions 70/6170/6
authorClement Durand <clement.durand@polytechnique.edu>
Thu, 13 Apr 2017 11:27:04 +0000 (13:27 +0200)
committerDave Barach <openvpp@barachs.net>
Fri, 14 Apr 2017 11:56:16 +0000 (11:56 +0000)
commit6cf260cb2a8b41450850a1578c708e1dd5af699f
tree92080c5c3ef5ec306e348b01b5292769eeb3bbcb
parent6cf30adc2cd3aa818e5d97cf71ea8b2fc2aaefa7
tcp: completed trace functions

* Populated the trace struct that weren't used before
* Modified and created format functions to format tcp packets and
connections
* Completed the node definitions to add the format_trace function
* Filled the tracing parts with `vlib_add_trace' calls in each tcp node
function

For the nodes in tcp_input.c, there is a verbose trace and a non-verbose
trace. Each packet goes through tcp[4-6]-input which is traced with
`format_tcp_rx_trace', and the other nodes are traced with
`format_tcp_rx_trace_short'.

Change-Id: I4f2eed023f5973c14343132a33b06131cf063aa2
Signed-off-by: Pierre Pfister <ppfister@cisco.com>
Signed-off-by: Clement Durand <clement.durand@polytechnique.edu>
src/vnet/tcp/tcp_input.c
src/vnet/tcp/tcp_output.c