ip4: don't format upper layer if it's a fragment
[vpp.git] / src / vnet / ip / ip4_format.c
index 5399e44..6c31b42 100644 (file)
@@ -178,6 +178,9 @@ format_ip4_header (u8 * s, va_list * args)
        _(CONGESTION);
 #undef _
       }
+    /* Fragment packet but not the first. */
+    if (o != 0)
+      return s;
   }
 
   /* Recurse into next protocol layer. */