Fixed some printf format errors (don't assume that ntohl() returns u_long).
This commit is contained in:
parent
336ee39a26
commit
594279ec73
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=75221
@ -504,9 +504,9 @@ show_ipfw(struct ip_fw *chain, int pcwidth, int bcwidth)
|
||||
}
|
||||
|
||||
if (chain->fw_ipflg & IP_FW_IF_TCPSEQ)
|
||||
printf(" tcpseq %lu", ntohl(chain->fw_tcpseq));
|
||||
printf(" tcpseq %lu", (u_long)ntohl(chain->fw_tcpseq));
|
||||
if (chain->fw_ipflg & IP_FW_IF_TCPACK)
|
||||
printf(" tcpack %lu", ntohl(chain->fw_tcpack));
|
||||
printf(" tcpack %lu", (u_long)ntohl(chain->fw_tcpack));
|
||||
if (chain->fw_ipflg & IP_FW_IF_TCPWIN)
|
||||
printf(" tcpwin %hu", ntohs(chain->fw_tcpwin));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user