Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
ip: support flow-hash gtpv1teid
[vpp.git]
/
src
/
vnet
/
ip
/
ip4_options.c
diff --git
a/src/vnet/ip/ip4_options.c
b/src/vnet/ip/ip4_options.c
index
9b01151
..
6ef6b60
100644
(file)
--- a/
src/vnet/ip/ip4_options.c
+++ b/
src/vnet/ip/ip4_options.c
@@
-77,6
+77,11
@@
VLIB_NODE_FN (ip4_options_node) (vlib_main_t * vm,
switch (options[0] & 0x7f)
{
case IP4_ROUTER_ALERT_OPTION:
+ /*
+ * check the option length
+ */
+ if (options[1] != 4)
+ break;
/*
* if it's an IGMP packet, pass up the local stack
*/