VPP-117: Fix ip4 and ip6 lookup and rewrite traces 26/1526/1
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 14:33:22 +0000 (14:33 +0000)
commita38c3df5fd2bf1bf8b3389e882f6dcd5ac533202
tree07fb761afe32f0bb2ae77b97c26a10cfb25e04bc
parent51e332ab83169e4c3b6874ae1c7149fe869becfc
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>
(cherry picked from commit 584b99a0120778108bd019b697639fbf3c1505d1)
vnet/vnet/ip/ip4_forward.c
vnet/vnet/ip/ip6_forward.c