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:
fyodor 2007-08-11 03:24:04 +00:00
parent 90e464602a
commit f5e32d305f
7 changed files with 42 additions and 10 deletions

View file

@ -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;
}