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:
f94c63e
)
IP ttl check in ip4-input missing for single packet path.
39/15039/1
author
Ole Troan
<ot@cisco.com>
Fri, 28 Sep 2018 12:27:24 +0000
(14:27 +0200)
committer
Ole Troan
<ot@cisco.com>
Fri, 28 Sep 2018 12:27:24 +0000
(14:27 +0200)
Change-Id: Idc17b2f8794d37cd3242a97395ab56bd633ca575
Signed-off-by: Ole Troan <ot@cisco.com>
src/vnet/ip/ip4_input.h
patch
|
blob
|
history
diff --git
a/src/vnet/ip/ip4_input.h
b/src/vnet/ip/ip4_input.h
index
880896e
..
5df2154
100644
(file)
--- a/
src/vnet/ip/ip4_input.h
+++ b/
src/vnet/ip/ip4_input.h
@@
-290,6
+290,9
@@
ip4_input_check_x1 (vlib_main_t * vm,
check_ver_opt_csum (ip0, &error0, verify_checksum);
+ if (PREDICT_FALSE (ip0->ttl < 1))
+ error0 = IP4_ERROR_TIME_EXPIRED;
+
/* Drop fragmentation offset 1 packets. */
error0 = ip4_get_fragment_offset (ip0) == 1 ?
IP4_ERROR_FRAGMENT_OFFSET_ONE : error0;