15 #ifndef __included_dslite_h__ 16 #define __included_dslite_h__ 45 u32 per_b4_list_head_index;
49 u32 outside_address_index;
107 #define foreach_dslite_error \ 108 _(IN2OUT, "valid in2out DS-Lite packets") \ 109 _(OUT2IN, "valid out2in DS-Lite packets") \ 110 _(CE_ENCAP, "valid CE encap DS-Lite packets") \ 111 _(CE_DECAP, "valid CE decap DS-Lite packets") \ 112 _(NO_TRANSLATION, "no translation") \ 113 _(BAD_IP6_PROTOCOL, "bad ip6 protocol") \ 114 _(OUT_OF_PORTS, "out of ports") \ 115 _(UNSUPPORTED_PROTOCOL, "unsupported protocol") \ 116 _(BAD_ICMP_TYPE, "unsupported icmp type") \ 117 _(UNKNOWN, "unknown") 121 #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
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;u32 outside_address_index;}) dslite_session_t
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
void dslite_set_ce(dslite_main_t *dm, u8 set)
vlib_node_registration_t dslite_out2in_node
(constructor) VLIB_REGISTER_NODE (dslite_out2in_node)
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
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)
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
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 sessions_per_b4_list_head_index
vlib_node_registration_t dslite_in2out_node
(constructor) VLIB_REGISTER_NODE (dslite_in2out_node)
vlib_node_registration_t dslite_ce_decap_node
(constructor) VLIB_REGISTER_NODE (dslite_ce_decap_node)