diff options
author | Matus Fabian <matfabia@cisco.com> | 2017-07-21 03:46:03 -0700 |
---|---|---|
committer | Matus Fabian <matfabia@cisco.com> | 2017-07-21 03:46:47 -0700 |
commit | 161c59c75c667ce7a3c1d6173723831dc30e994c (patch) | |
tree | 8e7ed4f26a2e9120fde75401f3d738b546a037fe /src/plugins/snat/snat.h | |
parent | faee17e8b866fe16ce706af31d1e9cbc6d06b961 (diff) |
SNAT: in2out translation as an output feature hairpinning (VPP-913)
Change-Id: I3790739683c6090ffb2aefb4758bd4275856c09a
Signed-off-by: Matus Fabian <matfabia@cisco.com>
Diffstat (limited to 'src/plugins/snat/snat.h')
-rw-r--r-- | src/plugins/snat/snat.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/snat/snat.h b/src/plugins/snat/snat.h index 2546815b5f4..61ed52f61e2 100644 --- a/src/plugins/snat/snat.h +++ b/src/plugins/snat/snat.h @@ -37,6 +37,8 @@ #define SNAT_TCP_INCOMING_SYN 6 #define SNAT_ICMP_TIMEOUT 60 +#define SNAT_FLAG_HAIRPINNING (1 << 0) + /* Key */ typedef struct { union @@ -369,6 +371,8 @@ extern vlib_node_registration_t snat_in2out_output_worker_handoff_node; extern vlib_node_registration_t snat_out2in_worker_handoff_node; extern vlib_node_registration_t snat_det_in2out_node; extern vlib_node_registration_t snat_det_out2in_node; +extern vlib_node_registration_t snat_hairpin_dst_node; +extern vlib_node_registration_t snat_hairpin_src_node; void snat_free_outside_address_and_port (snat_main_t * sm, snat_session_key_t * k, |