From: Klement Sekera Date: Wed, 23 Oct 2019 10:16:02 +0000 (+0000) Subject: ip: fix tracing of packet flags X-Git-Tag: v20.05-rc0~529 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F48%2F22948%2F2;p=vpp.git ip: fix tracing of packet flags This fixes incorrect tracing of flags such as MORE_FRAGMENTS. Type: fix Change-Id: Ia5698418a7cbb45c18bc9c95f560cea020e63c39 Signed-off-by: Klement Sekera --- diff --git a/src/vnet/ip/ip4_format.c b/src/vnet/ip/ip4_format.c index 6c31b422225..eebd5ad8bd3 100644 --- a/src/vnet/ip/ip4_format.c +++ b/src/vnet/ip/ip4_format.c @@ -165,7 +165,7 @@ format_ip4_header (u8 * s, va_list * args) /* Fragment offset. */ o = 8 * (f & 0x1fff); - f ^= o; + f ^= f & 0x1fff; if (o != 0) s = format (s, " offset %d", o);