1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-24 15:19:03 +00:00

Swap SCTP vtag and csum in HIGH_DETAIL output.

Discovered by Gisle Vanem.
http://seclists.org/nmap-dev/2013/q3/269
This commit is contained in:
david
2013-08-15 08:07:14 +00:00
parent 3728ece727
commit 784b1ef4e8

View File

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