![]() |
FD.io VPP
v16.06
Vector Packet Processing
|
Go to the source code of this file.
Data Structures | |
struct | tcp_logging_struct |
Macros | |
#define | TCP_LOGGING_DISABLE 0 |
#define | TCP_LOGGING_ENABLE 1 |
#define | TCP_LOGGING_PACKET_DUMP 2 |
#define | TCP_LOGGING_SUMMARY_DUMP 3 |
#define | MAX_TCP_LOGGING_COUNT 1024 |
#define | JLI printf("%s %s %d\n", __FILE__, __FUNCTION__, __LINE__); fflush(stdout); |
#define | CNAT_ICMP_DEST_UNREACHABLE 100 |
#define | INCREMENT_NODE_COUNTER(c) em->counters[node_counter_base_index + c] += 1; |
#define | V4_TCP_UPDATE_SESSION_FLAG(db, tcp) |
#define | V4_TCP_UPDATE_SESSION_DB_FLAG(sdb, tcp) |
#define | CNAT_UPDATE_TCP_SEQ_ACK_CHECKSUM(old_val32, new_val32) |
#define | CNAT_UPDATE_L3_CHECKSUM_DECLARE |
#define | CNAT_UPDATE_L3_CHECKSUM(old_l3_1, old_l3_2, old_l3_c, new_l3_1, new_l3_2) |
#define | CNAT_UPDATE_L3_L4_CHECKSUM_DECLARE |
#define | CNAT_UPDATE_L3_L4_CHECKSUM(old_l3_1, old_l3_2, old_l4, old_l3_c, old_l4_c, new_l3_1, new_l3_2, new_l4) |
#define | CNAT_UPDATE_L3_ICMP_CHECKSUM(old_l3_1, old_l3_2, old_l4, old_l3_c, old_l4_c, new_l3_1, new_l3_2, new_l4) |
#define | CNAT_UPDATE_ICMP_ERR_CHECKSUM_DECLARE |
#define | CNAT_UPDATE_ICMP_ERR_CHECKSUM(old_ip_1, old_ip_2, old_ip_port, old_ip_c, old_icmp_c, new_ip_1, new_ip_2, new_ip_port, new_ip_c) |
#define | FILL_CHECKSUM(checksum_field, sum32) |
Typedefs | |
typedef struct tcp_logging_struct | tcp_logging_struct_t |
#define CNAT_ICMP_DEST_UNREACHABLE 100 |
Definition at line 70 of file cnat_v4_functions.h.
#define CNAT_UPDATE_ICMP_ERR_CHECKSUM | ( | old_ip_1, | |
old_ip_2, | |||
old_ip_port, | |||
old_ip_c, | |||
old_icmp_c, | |||
new_ip_1, | |||
new_ip_2, | |||
new_ip_port, | |||
new_ip_c | |||
) |
Definition at line 206 of file cnat_v4_functions.h.
#define CNAT_UPDATE_ICMP_ERR_CHECKSUM_DECLARE |
Definition at line 200 of file cnat_v4_functions.h.
#define CNAT_UPDATE_L3_CHECKSUM | ( | old_l3_1, | |
old_l3_2, | |||
old_l3_c, | |||
new_l3_1, | |||
new_l3_2 | |||
) |
Definition at line 128 of file cnat_v4_functions.h.
#define CNAT_UPDATE_L3_CHECKSUM_DECLARE |
Definition at line 123 of file cnat_v4_functions.h.
#define CNAT_UPDATE_L3_ICMP_CHECKSUM | ( | old_l3_1, | |
old_l3_2, | |||
old_l4, | |||
old_l3_c, | |||
old_l4_c, | |||
new_l3_1, | |||
new_l3_2, | |||
new_l4 | |||
) |
Definition at line 172 of file cnat_v4_functions.h.
#define CNAT_UPDATE_L3_L4_CHECKSUM | ( | old_l3_1, | |
old_l3_2, | |||
old_l4, | |||
old_l3_c, | |||
old_l4_c, | |||
new_l3_1, | |||
new_l3_2, | |||
new_l4 | |||
) |
Definition at line 150 of file cnat_v4_functions.h.
#define CNAT_UPDATE_L3_L4_CHECKSUM_DECLARE |
Definition at line 144 of file cnat_v4_functions.h.
#define CNAT_UPDATE_TCP_SEQ_ACK_CHECKSUM | ( | old_val32, | |
new_val32 | |||
) |
Definition at line 97 of file cnat_v4_functions.h.
#define FILL_CHECKSUM | ( | checksum_field, | |
sum32 | |||
) |
Definition at line 225 of file cnat_v4_functions.h.
#define INCREMENT_NODE_COUNTER | ( | c | ) | em->counters[node_counter_base_index + c] += 1; |
Definition at line 71 of file cnat_v4_functions.h.
#define JLI printf("%s %s %d\n", __FILE__, __FUNCTION__, __LINE__); fflush(stdout); |
Definition at line 68 of file cnat_v4_functions.h.
#define MAX_TCP_LOGGING_COUNT 1024 |
Definition at line 37 of file cnat_v4_functions.h.
#define TCP_LOGGING_DISABLE 0 |
Definition at line 32 of file cnat_v4_functions.h.
#define TCP_LOGGING_ENABLE 1 |
Definition at line 33 of file cnat_v4_functions.h.
#define TCP_LOGGING_PACKET_DUMP 2 |
Definition at line 34 of file cnat_v4_functions.h.
#define TCP_LOGGING_SUMMARY_DUMP 3 |
Definition at line 35 of file cnat_v4_functions.h.
#define V4_TCP_UPDATE_SESSION_DB_FLAG | ( | sdb, | |
tcp | |||
) |
Definition at line 83 of file cnat_v4_functions.h.
#define V4_TCP_UPDATE_SESSION_FLAG | ( | db, | |
tcp | |||
) |
Definition at line 74 of file cnat_v4_functions.h.
typedef struct tcp_logging_struct tcp_logging_struct_t |
void calculate_window_scale | ( | tcp_hdr_type * | tcp_header, |
u8 * | scale | ||
) |
Definition at line 2135 of file cnat_util.c.
void cnat_log_nat44_tcp_seq_mismatch | ( | cnat_main_db_entry_t * | db, |
cnat_vrfmap_t * | vrfmap | ||
) |
|
inlinestatic |
Definition at line 232 of file cnat_v4_functions.h.
u32 get_my_svi_intf_ip_addr | ( | ) |
u32 icmp_msg_gen_allowed | ( | ) |
int icmpv4_generate_with_throttling | ( | spp_ctx_t * | ctx, |
ipv4_header * | ipv4, | ||
u16 | rx_uidb_index | ||
) |
int icmpv6_generate_with_throttling | ( | spp_ctx_t * | ctx, |
ipv6_header_t * | ipv4, | ||
u16 | rx_uidb_index | ||
) |
void ipv4_decr_ttl_n_calc_csum | ( | ipv4_header * | ipv4 | ) |
void print_icmp_pkt | ( | ipv4_header * | ip | ) |
void print_ipv6_pkt | ( | ipv6_header_t * | ip | ) |
void print_tcp_pkt | ( | ipv4_header * | ip | ) |
void print_udp_pkt | ( | ipv4_header * | ip | ) |
|
inline |
Definition at line 267 of file cnat_v4_functions.c.
int v4_crc_zero_udp_allowed | ( | ) |
cnat_icmp_msg_t v6_icmp_msg_gen_allowed | ( | ) |