15 #ifndef __included_dslite_h__ 16 #define __included_dslite_h__ 45 u32 per_b4_list_head_index;
115 #define foreach_dslite_error \ 116 _(IN2OUT, "valid in2out DS-Lite packets") \ 117 _(OUT2IN, "valid out2in DS-Lite packets") \ 118 _(CE_ENCAP, "valid CE encap DS-Lite packets") \ 119 _(CE_DECAP, "valid CE decap DS-Lite packets") \ 120 _(NO_TRANSLATION, "no translation") \ 121 _(BAD_IP6_PROTOCOL, "bad ip6 protocol") \ 122 _(OUT_OF_PORTS, "out of ports") \ 123 _(UNSUPPORTED_PROTOCOL, "unsupported protocol") \ 124 _(BAD_ICMP_TYPE, "unsupported icmp type") \ 125 _(UNKNOWN, "unknown") 129 #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)
clib_bihash_16_8_t b4_hash
void dslite_init(vlib_main_t *vm)
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
snat_address_t * addr_pool
int dslite_set_aftr_ip6_addr(dslite_main_t *dm, ip6_address_t *addr)
ip6_address_t aftr_ip6_addr
ip4_address_t b4_ip4_addr
typedef CLIB_PACKED(struct{snat_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
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)
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)