mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 12:41:29 +00:00
Fix various typos in comments. Closes #2888
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Binding for the libssh2 library. Note that there is not a one-to-one correspondance
|
||||
* Binding for the libssh2 library. Note that there is not a one-to-one correspondence
|
||||
* between functions in libssh2 and the binding.
|
||||
* Currently, during the ssh2 handshake, a call to nsock.receive may result in an EOF
|
||||
* error. This appears to only occur when stressing the ssh server (ie during a brute
|
||||
|
||||
@@ -296,7 +296,7 @@ int get_diffs(u32 *ipid_diffs, int numSamples, const u32 *ipids, int islocalhost
|
||||
|
||||
}
|
||||
|
||||
/* Indentify the ipid sequence for 32-bit IPID values (IPv6) */
|
||||
/* Identify the ipid sequence for 32-bit IPID values (IPv6) */
|
||||
int get_ipid_sequence_32(int numSamples, const u32 *ipids, int islocalhost) {
|
||||
int ipid_seq = IPID_SEQ_UNKNOWN;
|
||||
u32 ipid_diffs[32];
|
||||
@@ -310,7 +310,7 @@ int get_ipid_sequence_32(int numSamples, const u32 *ipids, int islocalhost) {
|
||||
}
|
||||
}
|
||||
|
||||
/* Indentify the ipid sequence for 16-bit IPID values (IPv4) */
|
||||
/* Identify the ipid sequence for 16-bit IPID values (IPv4) */
|
||||
int get_ipid_sequence_16(int numSamples, const u32 *ipids, int islocalhost) {
|
||||
int i;
|
||||
int ipid_seq = IPID_SEQ_UNKNOWN;
|
||||
|
||||
@@ -265,7 +265,7 @@ GroupScanStats::GroupScanStats(UltraScanInfo *UltraSI) {
|
||||
USI = UltraSI;
|
||||
init_ultra_timing_vals(&timing, TIMING_GROUP, USI->numIncompleteHosts(), &(USI->perf), &USI->now);
|
||||
initialize_timeout_info(&to);
|
||||
/* Default timout should be much lower for arp */
|
||||
/* Default timeout should be much lower for arp */
|
||||
if (USI->ping_scan_arp)
|
||||
to.timeout = box(o.minRttTimeout(), o.initialRttTimeout(), INITIAL_ARP_RTT_TIMEOUT) * 1000;
|
||||
num_probes_active = 0;
|
||||
|
||||
@@ -91,7 +91,7 @@ static void arpping(Target *hostbatch[], int num_hosts) {
|
||||
int targetno;
|
||||
targets.reserve(num_hosts);
|
||||
|
||||
/* Default timout should be much lower for arp */
|
||||
/* Default timeout should be much lower for arp */
|
||||
int default_to = box(o.minRttTimeout(), o.initialRttTimeout(), INITIAL_ARP_RTT_TIMEOUT) * 1000;
|
||||
for (targetno = 0; targetno < num_hosts; targetno++) {
|
||||
initialize_timeout_info(&hostbatch[targetno]->to);
|
||||
|
||||
4
utils.h
4
utils.h
@@ -70,12 +70,12 @@
|
||||
#include "nbase.h"
|
||||
#include <assert.h>
|
||||
|
||||
/* Arithmatic difference modulo 2^32 */
|
||||
/* Arithmetic difference modulo 2^32 */
|
||||
#ifndef MOD_DIFF
|
||||
#define MOD_DIFF(a,b) ((u32) (MIN((u32)(a) - (u32 ) (b), (u32 )(b) - (u32) (a))))
|
||||
#endif
|
||||
|
||||
/* Arithmatic difference modulo 2^16 */
|
||||
/* Arithmetic difference modulo 2^16 */
|
||||
#ifndef MOD_DIFF_USHORT
|
||||
#define MOD_DIFF_USHORT(a,b) ((MIN((unsigned short)((unsigned short)(a) - (unsigned short ) (b)), (unsigned short) ((unsigned short )(b) - (unsigned short) (a)))))
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user