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>
This commit is contained in:

committed by
Ole Trøan

parent
cf7803d2e8
commit
ea5cd12d26
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user