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:
Arnout Engelen
2016-03-31 07:55:52 +02:00
parent 07bd32e878
commit db2da627df

View File

@@ -124,7 +124,6 @@ struct tcp_hdr {
#define TH_URG 0x20
#define TH_ECE 0x40
#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_sum; /* checksum */
u_short th_urp; /* urgent pointer */