summaryrefslogtreecommitdiffstats
path: root/src/vnet/ip/ip6_hop_by_hop.h
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2019-05-24 13:03:01 -0400
committerDamjan Marion <dmarion@me.com>2019-05-28 13:04:54 +0000
commit9080096f7c548415fc4d5354c7e582a3eda1a5ed (patch)
tree61ebd1313827b5788dd05df425992d750900079f /src/vnet/ip/ip6_hop_by_hop.h
parent7704afe2c20a2c2a240874209b5803e22187b620 (diff)
Add an ip6 local hop-by-hop protocol demux table
Add a minimal ip6 hbh header processing test. ioam plugin: use ip6_local_hop_by_hop_register_protocol() in udp_ping_init(). Please test the ioam plugin udp_ping path AYEC, so I can publish the patch. Change-Id: I74e35276d6c38c31022026cfd238fad5e4a54485 Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'src/vnet/ip/ip6_hop_by_hop.h')
-rw-r--r--src/vnet/ip/ip6_hop_by_hop.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/vnet/ip/ip6_hop_by_hop.h b/src/vnet/ip/ip6_hop_by_hop.h
index 6ae2a2e8b51..e8ecab6c6d5 100644
--- a/src/vnet/ip/ip6_hop_by_hop.h
+++ b/src/vnet/ip/ip6_hop_by_hop.h
@@ -42,6 +42,11 @@ typedef struct
typedef struct
{
+ u8 next_index_by_protocol[256];
+} ip6_local_hop_by_hop_runtime_t;
+
+typedef struct
+{
/* The current rewrite we're using */
u8 *rewrite;
@@ -85,6 +90,8 @@ typedef struct
u32 (*flow_handler[MAX_IP6_HBH_OPTION]) (u32 flow_ctx, u8 add);
flow_data_t *flows;
+ ip6_local_hop_by_hop_runtime_t *ip6_local_hbh_runtime;
+
/* convenience */
vlib_main_t *vlib_main;
vnet_main_t *vnet_main;