From 363db8809514dad0dc657c55aaf79139a45830f8 Mon Sep 17 00:00:00 2001 From: Pierre Pfister Date: Wed, 8 Jun 2016 12:23:21 +0100 Subject: VPP-117: Add trace to ip4 and ip6 lookup nodes The absence of trace in ip lookup nodes is misleading to many people. This patch adds ip lookup tracing and therefore contribute to worldwide happiness. In addition, this patch makes sure sw_if_index[VLIB_TX] is considered when tracing the fib_index value. In ip4/6-rewrite, the value corresponds to the tx interface index. The formatting function is therefore modified to take that case into account. Change-Id: I5915f0446a15c45e391eedfdfcedd9057aa6a237 Signed-off-by: Pierre Pfister --- vnet/vnet/ip/ip4.h | 1 + 1 file changed, 1 insertion(+) (limited to 'vnet/vnet/ip/ip4.h') diff --git a/vnet/vnet/ip/ip4.h b/vnet/vnet/ip/ip4.h index b14541eb2ef..59ef685bc57 100644 --- a/vnet/vnet/ip/ip4.h +++ b/vnet/vnet/ip/ip4.h @@ -173,6 +173,7 @@ extern ip4_main_t ip4_main; extern vlib_node_registration_t ip4_input_node; extern vlib_node_registration_t ip4_lookup_node; extern vlib_node_registration_t ip4_rewrite_node; +extern vlib_node_registration_t ip4_rewrite_local_node; extern vlib_node_registration_t ip4_arp_node; u32 ip4_fib_lookup_with_table (ip4_main_t * im, u32 fib_index, ip4_address_t * dst, -- cgit 1.2.3-korg