diff options
author | Matus Fabian <matfabia@cisco.com> | 2017-02-02 01:43:00 -0800 |
---|---|---|
committer | Matus Fabian <matfabia@cisco.com> | 2017-02-03 01:09:45 -0800 |
commit | 09d96f4a611fa989bfbbfb7e683d668dbe73ac1a (patch) | |
tree | c3e99fad08357a2c1b9660de49cf01b2e7d20aee /src/plugins/snat/snat.api | |
parent | 85bb9172894870f0c6c72e1555a0decf4d37213f (diff) |
SNAT: Port allocation per protocol
Ports are allocated per protocol (UDP, TCP, ICMP)
1:1 NAT with port is configured for specific protocol
Change-Id: I37ae5eed3715b223d0620d4fdaed7a482bb7a834
Signed-off-by: Matus Fabian <matfabia@cisco.com>
Diffstat (limited to 'src/plugins/snat/snat.api')
-rw-r--r-- | src/plugins/snat/snat.api | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/snat/snat.api b/src/plugins/snat/snat.api index b562e7a08e1..decbacf5c2f 100644 --- a/src/plugins/snat/snat.api +++ b/src/plugins/snat/snat.api @@ -118,6 +118,7 @@ define snat_interface_details { @param addr_only - 1 if address only mapping @param local_ip_address - local IP address @param external_ip_address - external IP address + @param protocol - IP protocol @param local_port - local port number @param external_port - external port number @param external_sw_if_index - external interface (if set @@ -132,6 +133,7 @@ define snat_add_static_mapping { u8 addr_only; u8 local_ip_address[16]; u8 external_ip_address[16]; + u8 protocol; u16 local_port; u16 external_port; u32 external_sw_if_index; @@ -162,6 +164,7 @@ define snat_static_mapping_dump { @param addr_only - 1 if address only mapping @param local_ip_address - local IP address @param external_ip_address - external IP address + @param protocol - IP protocol @param local_port - local port number @param external_port - external port number @param vfr_id - VRF ID @@ -172,6 +175,7 @@ define snat_static_mapping_details { u8 addr_only; u8 local_ip_address[16]; u8 external_ip_address[16]; + u8 protocol; u16 local_port; u16 external_port; u32 vrf_id; |