aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/ip/ip4_options.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/ip/ip4_options.c')
-rw-r--r--src/vnet/ip/ip4_options.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vnet/ip/ip4_options.c b/src/vnet/ip/ip4_options.c
index 9b01151a1f0..6ef6b6030cc 100644
--- a/src/vnet/ip/ip4_options.c
+++ b/src/vnet/ip/ip4_options.c
@@ -78,6 +78,11 @@ VLIB_NODE_FN (ip4_options_node) (vlib_main_t * vm,
{
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
*/
if (IP_PROTOCOL_IGMP == ip4->protocol)