From c667ffd4af4bb0a0576ceefcc29e3bb086a823c2 Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Wed, 27 Jun 2018 18:59:03 -0700 Subject: IP4 Router Alert option handling for IGMP and a new ip4-options node, inserted between ip4-input and ip4-punt, that checks for IP-router-alert option + IGMP combination and sends the packet to the ip4-local. This is required because some IGMP packets are sent to the group address and not the all-routers address. All IGMP packets are sent with the router alert option. Change-Id: I01f478d4d98ac9f806e0bcba0f6da6e4e7d26e2a Signed-off-by: Neale Ranns --- src/vnet/ip/ip4_packet.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/vnet/ip/ip4_packet.h') diff --git a/src/vnet/ip/ip4_packet.h b/src/vnet/ip/ip4_packet.h index 2f0c75e4924..c41a8021d96 100644 --- a/src/vnet/ip/ip4_packet.h +++ b/src/vnet/ip/ip4_packet.h @@ -193,6 +193,8 @@ typedef union #define IP4_VERSION_AND_HEADER_LENGTH_NO_OPTIONS \ ((4 << 4) | (sizeof (ip4_header_t) / sizeof (u32))) +#define IP4_ROUTER_ALERT_OPTION 20 + always_inline int ip4_get_fragment_offset (ip4_header_t * i) { -- cgit 1.2.3-korg