Don't redefine TH_FLAGS
Fixes compiler warning:
packet.cpp:127:9: warning: 'TH_FLAGS' macro redefined
^
/usr/include/netinet/tcp.h:103:9: note: previous definition is here
This commit is contained in:
@@ -124,7 +124,6 @@ struct tcp_hdr {
|
|||||||
#define TH_URG 0x20
|
#define TH_URG 0x20
|
||||||
#define TH_ECE 0x40
|
#define TH_ECE 0x40
|
||||||
#define TH_CWR 0x80
|
#define TH_CWR 0x80
|
||||||
#define TH_FLAGS (TH_FIN | TH_SYN | TH_RST | TH_ACK | TH_URG | TH_ECE | TH_CWR)
|
|
||||||
u_short th_win; /* window */
|
u_short th_win; /* window */
|
||||||
u_short th_sum; /* checksum */
|
u_short th_sum; /* checksum */
|
||||||
u_short th_urp; /* urgent pointer */
|
u_short th_urp; /* urgent pointer */
|
||||||
|
|||||||
Reference in New Issue
Block a user