aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/nat/nat.h
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2020-04-24 12:24:41 +0000
committerOle Trøan <otroan@employees.org>2020-04-24 15:21:44 +0000
commit5581de6d6d69388f899692f2dc201ff76a06af3d (patch)
tree89a66040498c46233ca464126545aa166173a9cc /src/plugins/nat/nat.h
parent82192ca4dca41de77a2e8a2dd50d72b5573e9a49 (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.h')
-rw-r--r--src/plugins/nat/nat.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/plugins/nat/nat.h b/src/plugins/nat/nat.h
index 4b9f24308f5..0fc174d2a91 100644
--- a/src/plugins/nat/nat.h
+++ b/src/plugins/nat/nat.h
@@ -45,11 +45,6 @@
/* NAT buffer flags */
#define SNAT_FLAG_HAIRPINNING (1 << 0)
-typedef struct
-{
- u32 arc_next;
-} nat_buffer_opaque_t;
-
typedef enum
{
NAT_NEXT_DROP,
@@ -69,9 +64,6 @@ typedef struct
u32 next_index;
} nat_pre_trace_t;
-#define nat_buffer_opaque(b) \
- ((nat_buffer_opaque_t *)((vnet_buffer_opaque2_t *)b->opaque2)->__unused2)
-
/*
STATIC_ASSERT (sizeof (nat_buffer_opaque_t) <=
STRUCT_SIZE_OF (vnet_buffer_opaque_t, unused),