1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-10 06:51:33 +00:00

Add SCTP vtag matching for ping probe replies too.

This commit is contained in:
david
2009-11-04 22:16:13 +00:00
parent a38d7db2cf
commit 5cc0f838b2

View File

@@ -4620,6 +4620,7 @@ static int get_ping_pcap_result(UltraScanInfo *USI, struct timeval *stime) {
struct sctp_hdr *sctp = (struct sctp_hdr *) ((u8 *) ip2 + ip2->ip_hl * 4); struct sctp_hdr *sctp = (struct sctp_hdr *) ((u8 *) ip2 + ip2->ip_hl * 4);
if (probe->dport() != ntohs(sctp->sh_dport) || if (probe->dport() != ntohs(sctp->sh_dport) ||
probe->sport() != ntohs(sctp->sh_sport) || probe->sport() != ntohs(sctp->sh_sport) ||
probe->sctpvtag() != ntohl(sctp->sh_vtag) ||
hss->target->v4sourceip()->s_addr != ip->ip_dst.s_addr) hss->target->v4sourceip()->s_addr != ip->ip_dst.s_addr)
continue; continue;
} else if (USI->ptech.rawprotoscan) { } else if (USI->ptech.rawprotoscan) {