changed src_ip and dst_ip in conn_info to new data structure

This commit is contained in:
wangyu-
2018-07-22 08:59:09 -05:00
parent 52d540df90
commit 0682757631
7 changed files with 169 additions and 73 deletions

View File

@@ -50,11 +50,22 @@ struct pseudo_header {
struct packet_info_t //todo change this to union
{
uint8_t protocol;
//ip_part:
u32_t src_ip;
uint16_t src_port;
u32_t dst_ip;
union tmp_ip_t
{
u32_t v4;
in6_addr v6;
bool equal (const tmp_ip_t &b) const;
char * get_str1() const;
char * get_str2() const;
}ip;
tmp_ip_t new_src_ip;
tmp_ip_t new_dst_ip;
uint16_t src_port;
uint16_t dst_port;
//tcp_part: