From 8ebe62536223e5a8d827b2b870cbd57aa34fd7ef Mon Sep 17 00:00:00 2001 From: Matus Fabian Date: Mon, 6 Nov 2017 05:04:53 -0800 Subject: NAT: DS-Lite (VPP-1040) Dual-Stack Lite enables a broadband service provider to share IPv4 addresses among customers by combining two well-known technologies: IPv4-in-IPv6 and NAT. Change-Id: I039740f8548c623cd1ac89b8ecda1a6cc4aafb9c Signed-off-by: Matus Fabian --- src/plugins/nat/nat.api | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'src/plugins/nat/nat.api') diff --git a/src/plugins/nat/nat.api b/src/plugins/nat/nat.api index 98a6f0673e4..187de25c8c1 100644 --- a/src/plugins/nat/nat.api +++ b/src/plugins/nat/nat.api @@ -1567,3 +1567,30 @@ define nat64_prefix_details { u8 prefix_len; u32 vrf_id; }; + + +/* + * DS-Lite APIs + */ + +/** \brief Add/delete address range to DS-Lite pool + @param client_index - opaque cookie to identify the sender + @param context - sender context, to match reply w/ request + @param start_addr - start address of the range + @param end_addr - end address of the range + @param is_add - 1 if add, 0 if delete +*/ +autoreply define dslite_add_del_pool_addr_range { + u32 client_index; + u32 context; + u8 start_addr[4]; + u8 end_addr[4]; + u8 is_add; +}; + +autoreply define dslite_set_aftr_addr { + u32 client_index; + u32 context; + u8 ip4_addr[4]; + u8 ip6_addr[16]; +}; -- cgit 1.2.3-korg