mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue