The printf %b list in PRINT_TH_FLAGS has to be in octal numbering.
Thus convert \8 to \10 and the warnings go away. Pointed out by: sam, ru, thompsa
This commit is contained in:
parent
a0394e33a5
commit
faedb66c2a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=169997
@ -69,7 +69,7 @@ struct tcphdr {
|
||||
#define TH_ECE 0x40
|
||||
#define TH_CWR 0x80
|
||||
#define TH_FLAGS (TH_FIN|TH_SYN|TH_RST|TH_PUSH|TH_ACK|TH_URG|TH_ECE|TH_CWR)
|
||||
#define PRINT_TH_FLAGS "\20\1FIN\2SYN\3RST\4PUSH\5ACK\6URG\7ECE\8CWR"
|
||||
#define PRINT_TH_FLAGS "\20\1FIN\2SYN\3RST\4PUSH\5ACK\6URG\7ECE\10CWR"
|
||||
|
||||
u_short th_win; /* window */
|
||||
u_short th_sum; /* checksum */
|
||||
|
Loading…
Reference in New Issue
Block a user