VPP-117: Fix ip4 and ip6 lookup and rewrite traces 17/1517/3
authorPierre Pfister <ppfister@cisco.com>
Mon, 13 Jun 2016 09:28:09 +0000 (10:28 +0100)
committerPierre Pfister <ppfister@cisco.com>
Mon, 13 Jun 2016 12:30:47 +0000 (13:30 +0100)
commit584b99a0120778108bd019b697639fbf3c1505d1
tree6bc64aae73cb2fe3059d436524b755bb749b27a0
parentcf2aa43150c0551cc4d488c55d6673b611aede87
VPP-117: Fix ip4 and ip6 lookup and rewrite traces

Previous patch was printing wrong data since rewrite node traces
an ethernet packet while other ip nodes trace an IP packet.

This patch introduces different tracing functions for:
- lookup node (where the fib index is valid)
- rewrite node (where an ethernet frame is available)
- other ip nodes (only the ip header is traced)

Change-Id: I5971a2e89ae8668f5aed4a410565a5f27e01fc22
Signed-off-by: Pierre Pfister <ppfister@cisco.com>
vnet/vnet/ip/ip4_forward.c
vnet/vnet/ip/ip6_forward.c