summaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2019-10-23 10:16:02 +0000
committerAndrew Yourtchenko <ayourtch@gmail.com>2020-08-07 21:45:43 +0000
commit818b5bcdf11d8a3e4fadc6484b11438d5e615777 (patch)
tree4823ac3213723c3944bfc599cd94006bf72996c3 /src/vnet
parent3584f0936c81df663c1cd5171d5d2c277da8bf78 (diff)
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 <ksekera@cisco.com> (cherry picked from commit ea5cd12d26047c36be5969c2c88147d26f788103)
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/ip/ip4_format.c2
1 files changed, 1 insertions, 1 deletions
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);