diff options
author | Chris Luke <chrisy@flirble.org> | 2016-05-25 14:39:47 -0400 |
---|---|---|
committer | Chris Luke <chris_luke@cable.comcast.com> | 2016-06-03 00:57:10 +0000 |
commit | 1f752a3f8ff420aa7d67904c2bf29ca3f2ea10b7 (patch) | |
tree | c7e3913932f4dfa3f8f79474d5be57210a168a43 /vnet/vnet/sr/sr_packet.h | |
parent | 45eb9713fe77bbb460e91f62bdfb8ecb80555cb8 (diff) |
VPP-92 Fixup some srv6 issues
Some small fixes to the srv6 code to bring it toward
conformance with draft-previdi-6man-segment-routing-header-05.
- The first segment needs to remain in the segment list.
- The segment list template needs a space for the ultimate
destination.
- The ultimate destination needs to be inserted into that
space when adding the SRH.
Change-Id: I66db6912e0128da084f14ceca20918ef67ccff79
Signed-off-by: Chris Luke <chrisy@flirble.org>
(cherry picked from commit 4b8b718ff9bbba3bea018505ac591bb737f68001)
Diffstat (limited to 'vnet/vnet/sr/sr_packet.h')
-rw-r--r-- | vnet/vnet/sr/sr_packet.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/vnet/vnet/sr/sr_packet.h b/vnet/vnet/sr/sr_packet.h index 5604a8dadb7..f9672e8025b 100644 --- a/vnet/vnet/sr/sr_packet.h +++ b/vnet/vnet/sr/sr_packet.h @@ -163,7 +163,11 @@ * Policy List Flags MUST be set to 0x0. */ -#define ROUTING_HEADER_TYPE_SR 4 +#ifndef IPPROTO_IPV6_ROUTE +#define IPPROTO_IPV6_ROUTE 43 +#endif + +#define ROUTING_HEADER_TYPE_SR 4 typedef struct { /* Protocol for next header. */ |