ip4: don't format upper layer if it's a fragment
Parsing ipv4 upper layer is not meaningful
if it's a fragment packet except the first.
@@ -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. */
