mirror of
https://github.com/nmap/nmap.git
synced 2026-08-03 22:29:06 +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:
parent
90e464602a
commit
f5e32d305f
7 changed files with 42 additions and 10 deletions
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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue