15 #ifndef __included_dslite_h__ 16 #define __included_dslite_h__ 70 u32 per_b4_list_head_index;
144 #define foreach_dslite_error \ 145 _(IN2OUT, "valid in2out DS-Lite packets") \ 146 _(OUT2IN, "valid out2in DS-Lite packets") \ 147 _(CE_ENCAP, "valid CE encap DS-Lite packets") \ 148 _(CE_DECAP, "valid CE decap DS-Lite packets") \ 149 _(NO_TRANSLATION, "no translation") \ 150 _(BAD_IP6_PROTOCOL, "bad ip6 protocol") \ 151 _(OUT_OF_PORTS, "out of ports") \ 152 _(UNSUPPORTED_PROTOCOL, "unsupported protocol") \ 153 _(BAD_ICMP_TYPE, "unsupported icmp type") \ 154 _(UNKNOWN, "unknown") 158 #define _(sym,str) DSLITE_ERROR_##sym, int dslite_set_b4_ip6_addr(dslite_main_t *dm, ip6_address_t *addr)
ip4_address_t aftr_ip4_addr
vlib_node_registration_t dslite_in2out_slowpath_node
(constructor) VLIB_REGISTER_NODE (dslite_in2out_slowpath_node)
int dslite_set_aftr_ip4_addr(dslite_main_t *dm, ip4_address_t *addr)
NAT port/address allocation lib.
clib_bihash_16_8_t b4_hash
u8 * format_dslite_trace(u8 *s, va_list *args)
ip6_address_t b4_ip6_addr
A collection of simple counters.
void dslite_set_ce(dslite_main_t *dm, u8 set)
vlib_node_registration_t dslite_out2in_node
(constructor) VLIB_REGISTER_NODE (dslite_out2in_node)
u32 dslite_in2out_slowpath_node_index
int dslite_set_aftr_ip6_addr(dslite_main_t *dm, ip6_address_t *addr)
NAT port/address allocation lib.
ip6_address_t aftr_ip6_addr
ip4_address_t b4_ip4_addr
vlib_node_registration_t dslite_ce_encap_node
(constructor) VLIB_REGISTER_NODE (dslite_ce_encap_node)
u8 * format_dslite_ce_trace(u8 *s, va_list *args)
typedef CLIB_PACKED(struct { nat_session_key_t out2in;dslite_session_key_t in2out;u32 per_b4_index;u32 per_b4_list_head_index;f64 last_heard;u64 total_bytes;u32 total_pkts;}) dslite_session_t
int dslite_add_del_pool_addr(dslite_main_t *dm, ip4_address_t *addr, u8 is_add)
vlib_simple_counter_main_t total_b4s
int dslite_set_b4_ip4_addr(dslite_main_t *dm, ip4_address_t *addr)
dslite_per_thread_data_t * per_thread_data
struct _vlib_node_registration vlib_node_registration_t
vlib_simple_counter_main_t total_sessions
dslite_main_t dslite_main
ip6_address_t softwire_id
dslite_session_t * sessions
#define foreach_dslite_error
clib_bihash_24_8_t in2out
u32 dslite_out2in_node_index
u32 sessions_per_b4_list_head_index
vlib_node_registration_t dslite_in2out_node
(constructor) VLIB_REGISTER_NODE (dslite_in2out_node)
u32 dslite_in2out_node_index
vlib_node_registration_t dslite_ce_decap_node
(constructor) VLIB_REGISTER_NODE (dslite_ce_decap_node)