mirror of
https://github.com/wangyu-/udp2raw.git
synced 2025-10-14 09:55:33 +08:00
changed some members of conn_info to pointers
This commit is contained in:
21
network.h
21
network.h
@@ -53,32 +53,13 @@ struct packet_info_t
|
||||
uint16_t icmp_seq;
|
||||
|
||||
bool has_ts;
|
||||
packet_info_t()
|
||||
{
|
||||
if(raw_mode==mode_faketcp)
|
||||
{
|
||||
protocol=IPPROTO_TCP;
|
||||
}
|
||||
else if(raw_mode==mode_udp)
|
||||
{
|
||||
protocol=IPPROTO_UDP;
|
||||
}
|
||||
else if(raw_mode==mode_icmp)
|
||||
{
|
||||
protocol=IPPROTO_ICMP;
|
||||
}
|
||||
}
|
||||
packet_info_t();
|
||||
};
|
||||
|
||||
struct raw_info_t
|
||||
{
|
||||
// int peek;
|
||||
packet_info_t send_info;
|
||||
packet_info_t recv_info;
|
||||
raw_info_t()
|
||||
{
|
||||
// peek=0;
|
||||
}
|
||||
};//g_raw_info;
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user