mirror of
https://github.com/nmap/nmap.git
synced 2026-02-03 20:16:33 +00:00
merge soc07 r4780 - Moved OSScan warning message (may not be reliable because could not find 1 open and 1 closed port) so it is printed along with the OSScan results instead of above it
This commit is contained in:
14
Target.cc
14
Target.cc
@@ -122,7 +122,7 @@ void Target::Initialize() {
|
||||
distance = -1;
|
||||
FPR1 = NULL;
|
||||
FPR = NULL;
|
||||
osscan_performed = 0;
|
||||
osscan_flag = OS_NOTPERF;
|
||||
wierd_responses = flags = 0;
|
||||
memset(&to, 0, sizeof(to));
|
||||
memset(&targetsock, 0, sizeof(targetsock));
|
||||
@@ -443,3 +443,15 @@ const u8 *Target::SrcMACAddress() {
|
||||
const u8 *Target::NextHopMACAddress() {
|
||||
return (NextHopMACaddress_set)? NextHopMACaddress : NULL;
|
||||
}
|
||||
|
||||
int Target::osscanPerformed(void) {
|
||||
return osscan_flag;
|
||||
}
|
||||
|
||||
void Target::osscanSetFlag(int flag) {
|
||||
if(osscan_flag == OS_PERF_UNREL)
|
||||
return;
|
||||
else
|
||||
osscan_flag = flag;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user