Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
cf7803d
)
ip: fix tracing of packet flags
48/22948/2
author
Klement Sekera
<ksekera@cisco.com>
Wed, 23 Oct 2019 10:16:02 +0000
(10:16 +0000)
committer
Ole Trøan
<otroan@employees.org>
Mon, 28 Oct 2019 09:14:28 +0000
(09:14 +0000)
This fixes incorrect tracing of flags such as MORE_FRAGMENTS.
Type: fix
Change-Id: Ia5698418a7cbb45c18bc9c95f560cea020e63c39
Signed-off-by: Klement Sekera <ksekera@cisco.com>
src/vnet/ip/ip4_format.c
patch
|
blob
|
history
diff --git
a/src/vnet/ip/ip4_format.c
b/src/vnet/ip/ip4_format.c
index
6c31b42
..
eebd5ad
100644
(file)
--- 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);