mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
Remove struct connectsockinfo{} from global_structures.h as it's unneeded now. It was initialized in pos_scan, but connect scanning is now handled by ultra_scan.
This commit is contained in:
@@ -135,16 +135,6 @@ struct udpprobeinfo {
|
||||
struct in_addr target;
|
||||
};
|
||||
|
||||
struct connectsockinfo {
|
||||
fd_set fds_read;
|
||||
fd_set fds_write;
|
||||
fd_set fds_except;
|
||||
struct portinfo *socklookup[2048]; /* index socket descriptor -> scan[]
|
||||
index. No OS better give us
|
||||
an SD > 2047!@#$ */
|
||||
int maxsd;
|
||||
};
|
||||
|
||||
/* The runtime statistics used to decide how fast to proced and how
|
||||
many ports we can try at once */
|
||||
struct scanstats {
|
||||
|
||||
@@ -4915,7 +4915,6 @@ void pos_scan(Target *target, u16 *portarray, int numports, stype scantype) {
|
||||
struct portinfo *scan = NULL, *current, *next;
|
||||
struct portinfolist pil;
|
||||
struct timeval now;
|
||||
struct connectsockinfo csi;
|
||||
struct rpcscaninfo rsi;
|
||||
unsigned long j;
|
||||
struct serviceDeductions sd;
|
||||
@@ -4948,11 +4947,6 @@ void pos_scan(Target *target, u16 *portarray, int numports, stype scantype) {
|
||||
|
||||
memset(&pil, 0, sizeof(pil));
|
||||
|
||||
FD_ZERO(&csi.fds_read);
|
||||
FD_ZERO(&csi.fds_write);
|
||||
FD_ZERO(&csi.fds_except);
|
||||
csi.maxsd = 0;
|
||||
|
||||
if (o.max_parallelism) {
|
||||
ss.max_width = o.max_parallelism;
|
||||
} else {
|
||||
@@ -4966,8 +4960,6 @@ void pos_scan(Target *target, u16 *portarray, int numports, stype scantype) {
|
||||
ss.initial_packet_width = box(ss.min_width, ss.max_width, ss.initial_packet_width);
|
||||
ss.numqueries_ideal = ss.initial_packet_width;
|
||||
|
||||
memset(csi.socklookup, 0, sizeof(csi.socklookup));
|
||||
|
||||
get_rpc_procs(&(rsi.rpc_progs), &(rsi.rpc_number));
|
||||
scan = (struct portinfo *) safe_malloc(rsi.rpc_number * sizeof(struct portinfo));
|
||||
for(j = 0; j < rsi.rpc_number; j++) {
|
||||
|
||||
Reference in New Issue
Block a user