|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
15 #ifndef __included_dslite_h__
16 #define __included_dslite_h__
70 u32 per_b4_list_head_index;
145 #define foreach_dslite_error \
146 _(IN2OUT, "valid in2out DS-Lite packets") \
147 _(OUT2IN, "valid out2in DS-Lite packets") \
148 _(CE_ENCAP, "valid CE encap DS-Lite packets") \
149 _(CE_DECAP, "valid CE decap DS-Lite packets") \
150 _(NO_TRANSLATION, "no translation") \
151 _(BAD_IP6_PROTOCOL, "bad ip6 protocol") \
152 _(OUT_OF_PORTS, "out of ports") \
153 _(UNSUPPORTED_PROTOCOL, "unsupported protocol") \
154 _(BAD_ICMP_TYPE, "unsupported icmp type") \
155 _(UNKNOWN, "unknown")
159 #define _(sym,str) DSLITE_ERROR_##sym,
u32 sessions_per_b4_list_head_index
NAT port/address allocation lib.
#define foreach_dslite_error
vlib_node_registration_t dslite_ce_decap_node
(constructor) VLIB_REGISTER_NODE (dslite_ce_decap_node)
clib_bihash_16_8_t b4_hash
dslite_per_thread_data_t * per_thread_data
dslite_main_t dslite_main
dslite_session_t * sessions
vlib_node_registration_t dslite_in2out_node
(constructor) VLIB_REGISTER_NODE (dslite_in2out_node)
ip6_address_t aftr_ip6_addr
vlib_node_registration_t dslite_in2out_slowpath_node
(constructor) VLIB_REGISTER_NODE (dslite_in2out_slowpath_node)
u32 dslite_in2out_node_index
int dslite_add_del_pool_addr(dslite_main_t *dm, ip4_address_t *addr, u8 is_add)
vlib_simple_counter_main_t total_b4s
ip4_address_t aftr_ip4_addr
vlib_node_registration_t dslite_ce_encap_node
(constructor) VLIB_REGISTER_NODE (dslite_ce_encap_node)
ip6_address_t softwire_id
u8 * format_dslite_ce_trace(u8 *s, va_list *args)
struct _vlib_node_registration vlib_node_registration_t
vlib_simple_counter_main_t total_sessions
NAT port/address allocation lib.
int dslite_set_b4_ip4_addr(dslite_main_t *dm, ip4_address_t *addr)
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_set_aftr_ip6_addr(dslite_main_t *dm, ip6_address_t *addr)
u8 * format_dslite_trace(u8 *s, va_list *args)
ip6_address_t b4_ip6_addr
u32 dslite_out2in_node_index
u32 dslite_in2out_slowpath_node_index
clib_bihash_24_8_t in2out
void dslite_set_ce(dslite_main_t *dm, u8 set)
vlib_node_registration_t dslite_out2in_node
(constructor) VLIB_REGISTER_NODE (dslite_out2in_node)
A collection of simple counters.
ip4_address_t b4_ip4_addr
int dslite_set_aftr_ip4_addr(dslite_main_t *dm, ip4_address_t *addr)
int dslite_set_b4_ip6_addr(dslite_main_t *dm, ip6_address_t *addr)