summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);