Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Reverse the logic of flagging malformed packet in fragmentation code to allow padding
[vpp.git]
/
src
/
vnet
/
ip
/
ip_frag.c
diff --git
a/src/vnet/ip/ip_frag.c
b/src/vnet/ip/ip_frag.c
index
9f93738
..
8d495af
100644
(file)
--- a/
src/vnet/ip/ip_frag.c
+++ b/
src/vnet/ip/ip_frag.c
@@
-66,7
+66,7
@@
ip4_frag_do_fragment (vlib_main_t * vm, u32 pi, u32 ** buffer,
ptr = 0;
max = (mtu - sizeof (*ip4) - vnet_buffer (p)->ip_frag.header_offset) & ~0x7;
- if (rem
<
(p->current_length - offset - sizeof (*ip4)))
+ if (rem
>
(p->current_length - offset - sizeof (*ip4)))
{
*error = IP_FRAG_ERROR_MALFORMED;
return;