From db2da627df15602ff1c8c06aaa8028793b89e705 Mon Sep 17 00:00:00 2001 From: Arnout Engelen Date: Thu, 31 Mar 2016 07:55:52 +0200 Subject: [PATCH] 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 --- src/packet.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/packet.cpp b/src/packet.cpp index 930a449..5946740 100644 --- a/src/packet.cpp +++ b/src/packet.cpp @@ -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 */