mirror of
https://github.com/nmap/nmap.git
synced 2026-08-27 03:48:14 +00:00
A bunch of standardization changes to nmap-os-fingerprints from Steve Martin
This commit is contained in:
parent
30c5bec9a4
commit
9e78d26845
3 changed files with 252 additions and 247 deletions
|
|
@ -1,5 +1,9 @@
|
|||
# Nmap Changelog ($Id$)
|
||||
|
||||
o Fixed a crash found during certain UDP version scans. The crash was
|
||||
discovered and reported by Ron (iago(a)valhallalegends.com) and fixed
|
||||
by Doug Hoyte (doug(a)hcsw.com).
|
||||
|
||||
o Added --iflist argument which prints a list of system interfaces and
|
||||
routes detected by Nmap.
|
||||
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -1169,7 +1169,7 @@ ServiceProbe *AllProbes::getProbeByName(const char *name, int proto) {
|
|||
// scan protocols.
|
||||
int AllProbes::isExcluded(unsigned short port, int proto) {
|
||||
unsigned short *p=NULL;
|
||||
int count=-1;
|
||||
int count=-1,i;
|
||||
|
||||
if (proto == IPPROTO_TCP) {
|
||||
p = excludedports->tcp_ports;
|
||||
|
|
@ -1181,8 +1181,9 @@ int AllProbes::isExcluded(unsigned short port, int proto) {
|
|||
fatal("Bad proto number (%d) specified in AllProbes::isExcluded", proto);
|
||||
}
|
||||
|
||||
for (;count >= 0;count--)
|
||||
if (p[count] == port) return 1;
|
||||
for (i=0; i<count; i++)
|
||||
if (p[i] == port)
|
||||
return 1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue