diff options
author | Klement Sekera <ksekera@cisco.com> | 2020-04-24 12:24:41 +0000 |
---|---|---|
committer | Ole Trøan <otroan@employees.org> | 2020-04-24 15:21:44 +0000 |
commit | 5581de6d6d69388f899692f2dc201ff76a06af3d (patch) | |
tree | 89a66040498c46233ca464126545aa166173a9cc /src/plugins/nat/nat_inlines.h | |
parent | 82192ca4dca41de77a2e8a2dd50d72b5573e9a49 (diff) |
nat: make usage of vnet_buffer2 transparent
Type: fix
Signed-off-by: Klement Sekera <ksekera@cisco.com>
Change-Id: I50df248afb3f6b46c49e6695b3f124cfd584f016
Diffstat (limited to 'src/plugins/nat/nat_inlines.h')
-rw-r--r-- | src/plugins/nat/nat_inlines.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/nat/nat_inlines.h b/src/plugins/nat/nat_inlines.h index e5f2d96b33f..01b43591ccd 100644 --- a/src/plugins/nat/nat_inlines.h +++ b/src/plugins/nat/nat_inlines.h @@ -79,8 +79,8 @@ nat_pre_node_fn_inline (vlib_main_t * vm, vnet_feature_next (&arc_next0, b0); vnet_feature_next (&arc_next1, b1); - nat_buffer_opaque (b0)->arc_next = arc_next0; - nat_buffer_opaque (b1)->arc_next = arc_next1; + vnet_buffer2 (b0)->nat.arc_next = arc_next0; + vnet_buffer2 (b1)->nat.arc_next = arc_next1; if (PREDICT_FALSE ((node->flags & VLIB_NODE_FLAG_TRACE))) { @@ -122,7 +122,7 @@ nat_pre_node_fn_inline (vlib_main_t * vm, b0 = vlib_get_buffer (vm, bi0); next0 = def_next; vnet_feature_next (&arc_next0, b0); - nat_buffer_opaque (b0)->arc_next = arc_next0; + vnet_buffer2 (b0)->nat.arc_next = arc_next0; if (PREDICT_FALSE ((node->flags & VLIB_NODE_FLAG_TRACE) && (b0->flags & VLIB_BUFFER_IS_TRACED))) |