diff options
author | Klement Sekera <ksekera@cisco.com> | 2019-03-06 11:59:57 +0100 |
---|---|---|
committer | Ole Trøan <otroan@employees.org> | 2019-09-25 16:10:09 +0000 |
commit | 769145cdbc28324bd0b6304951199ec3d6e0e883 (patch) | |
tree | c424eb8d61ad1fdfea7f2b4bf5253ea6b92fadf4 /src/examples/srv6-sample-localsid | |
parent | 8fadb658a1b91a92f174fcf29a3620b644d8fe21 (diff) |
ip: respect buffer boundary when searching for ipv6 headers
Type: fix
Change-Id: I5a5461652f8115fa1270e20f748178fb5f5450f2
Signed-off-by: Klement Sekera <ksekera@cisco.com>
Diffstat (limited to 'src/examples/srv6-sample-localsid')
-rw-r--r-- | src/examples/srv6-sample-localsid/node.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/examples/srv6-sample-localsid/node.c b/src/examples/srv6-sample-localsid/node.c index 3ac7108bb08..e3a3259e877 100644 --- a/src/examples/srv6-sample-localsid/node.c +++ b/src/examples/srv6-sample-localsid/node.c @@ -188,7 +188,6 @@ srv6_localsid_sample_fn (vlib_main_t * vm, vlib_node_runtime_t * node, vlib_fram vlib_buffer_t * b0; ip6_header_t * ip0 = 0; ip6_sr_header_t * sr0; - ip6_ext_header_t *prev0 u32 next0 = SRV6_SAMPLE_LOCALSID_NEXT_IP6LOOKUP; ip6_sr_localsid_t *ls0; srv6_localsid_sample_per_sid_memory_t *ls0_mem; @@ -209,7 +208,7 @@ srv6_localsid_sample_fn (vlib_main_t * vm, vlib_node_runtime_t * node, vlib_fram ls0_mem = ls0->plugin_mem; /* SRH processing */ - ip6_ext_header_find_t (ip0, prev0, sr0, IP_PROTOCOL_IPV6_ROUTE); + sr0 = ip6_ext_header_find (vm, b0, ip0, IP_PROTOCOL_IPV6_ROUTE, NULL); end_decaps_srh_processing (node, b0, ip0, sr0, ls0, &next0); /* ==================================================================== */ |