1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-24 00:19:01 +00:00

8-byte display for SCTP checksum.

This commit is contained in:
david
2013-08-15 08:07:24 +00:00
parent ed237e8e19
commit 4961ebf047

View File

@@ -2646,7 +2646,7 @@ const char *ippackethdrinfo(const u8 *packet, u32 len, int detail) {
srchost, ntohs(sctp->sh_sport), dsthost, ntohs(sctp->sh_dport),
ipinfo);
} else if (detail == MEDIUM_DETAIL) {
Snprintf(protoinfo, sizeof(protoinfo), "SCTP [%s:%d > %s:%d csum=0x%04x] IP [%s]",
Snprintf(protoinfo, sizeof(protoinfo), "SCTP [%s:%d > %s:%d csum=0x%08x] IP [%s]",
srchost, ntohs(sctp->sh_sport), dsthost, ntohs(sctp->sh_dport), ntohl(sctp->sh_sum),
ipinfo);
} else if (detail == HIGH_DETAIL) {