From 5cc0f838b24bce7e7b0e3a858bc5b3ed1fd4077f Mon Sep 17 00:00:00 2001 From: david Date: Wed, 4 Nov 2009 22:16:13 +0000 Subject: [PATCH] Add SCTP vtag matching for ping probe replies too. --- scan_engine.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/scan_engine.cc b/scan_engine.cc index ed92bdf61..1cab27f85 100644 --- a/scan_engine.cc +++ b/scan_engine.cc @@ -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); if (probe->dport() != ntohs(sctp->sh_dport) || probe->sport() != ntohs(sctp->sh_sport) || + probe->sctpvtag() != ntohl(sctp->sh_vtag) || hss->target->v4sourceip()->s_addr != ip->ip_dst.s_addr) continue; } else if (USI->ptech.rawprotoscan) {