summaryrefslogtreecommitdiffstats
path: root/src/vnet/ip/ip4_packet.h
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2018-06-27 18:59:03 -0700
committerDamjan Marion <dmarion@me.com>2018-06-29 09:56:16 +0000
commitc667ffd4af4bb0a0576ceefcc29e3bb086a823c2 (patch)
treec4b664b55de1c826bd0f8ccb583b6c7ed7dc5d53 /src/vnet/ip/ip4_packet.h
parent09fdf9d074430032c27aba9e12e52440c7de2006 (diff)
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 <nranns@cisco.com>
Diffstat (limited to 'src/vnet/ip/ip4_packet.h')
-rw-r--r--src/vnet/ip/ip4_packet.h2
1 files changed, 2 insertions, 0 deletions
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)
{