mirror of
https://github.com/wangyu-/udp2raw.git
synced 2025-10-14 09:55:33 +08:00
changed src_ip and dst_ip in conn_info to new data structure
This commit is contained in:
19
network.h
19
network.h
@@ -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:
|
||||
|
Reference in New Issue
Block a user