dmiller
3499025302
Wrap dnet eth functions for non-Ethernet links
2025-06-23 20:54:32 +00:00
dmiller
6db5c9cb85
Bump copyright date
2025-02-26 17:44:43 +00:00
dmiller
0e3a51c992
Set timeouts for Windows connect scan. Fixes #2113
2024-10-30 19:02:09 +00:00
dmiller
f0fab247db
Simplify boostScanDelay to make it clear what limits are in place.
2024-06-27 19:36:03 +00:00
dmiller
eb21ac9ea0
Refactor HSS::nextTimeout for efficiency
...
Avoid function call in macro expansion. Reduce number of struct timeval
assignments.
2024-06-26 21:54:29 +00:00
dmiller
8b380fd505
Optimize processData: reduce calls to probeTimeout() and TIMEVAL_SUBTRACT calcs.
2024-03-01 19:29:55 +00:00
dmiller
938c3c7081
Moar const
2024-03-01 19:29:54 +00:00
dmiller
f999182d0f
Bump date and reapply header templates
2024-02-28 18:46:45 +00:00
dmiller
f5634144c6
incompleteHosts is multiset, not list, so size() is constant-time
2024-02-26 18:29:10 +00:00
dmiller
6f6b2de214
Apply new license templates, bump copyright date
2023-04-14 17:11:46 +00:00
dmiller
7bba5dc625
Fix signedness issue by making a constant a macro
2023-02-09 17:18:10 +00:00
dmiller
1375f44416
Reduce sockaddr comparisons in raw scans
2022-11-02 02:12:38 +00:00
dmiller
4eee4f2e1f
Reduce work spent checking outstanding probes in raw scans
2022-11-02 02:12:37 +00:00
dmiller
b5dd2956dd
Check for sd > FD_SETSIZE before it is unrecoverable. Fixes #1857
2022-09-29 00:13:10 +00:00
dmiller
dd690b3e0b
Bump copyright date and update some links [ci skip]
2022-02-18 17:38:46 +00:00
fyodor
3aec3f3a07
Update to latest copyright templates. Main change is that Insecure.Com LLC is now Nmap Software LLC
2021-11-23 16:04:37 +00:00
dmiller
e93109ef88
Make base_port a member of UltraScanInfo.
2021-08-06 02:47:58 +00:00
dmiller
180c716ca5
Combine tryno and pingseq
...
UltraProbe's tryno and pingseq attributes were mutually exclusive,
encoded in the same places in packets, and did not need more than 7 bits
to store. This change combines them into a bitfield. This simplifies
some logic, since they do not need to be distinguished from each other.
Additionally, in cases where the tryno is encoded in the source port
number, no further checks or decoding need to happen beyond comparing
the destination port of the response to the source port of the probe.
2021-08-06 02:47:57 +00:00
dmiller
1fd272f8dd
const all the things!
2021-04-23 20:37:41 +00:00
dmiller
28fde911fe
Remove an unused state variable from HostScanStats
2021-04-23 20:37:39 +00:00
dmiller
15726a0be1
Minor optimization of freshPortsLeft
...
The actual number only matters for certain debug output, so replaced
this frequently-called function with one that short-circuits to return a
boolean. Mostly only matters for host discovery scans, since all others
were only a few instructions already.
2020-10-26 16:59:06 +00:00
dmiller
ef8213a36c
Reintegrate Nmap 7.90 release branch
2020-10-05 23:00:30 +00:00
dmiller
ae10c8a19d
Abstract some things to move #includes out of headers.
2020-01-11 16:03:29 +00:00
dmiller
6d624f9ed7
Correct function prototypes from earlier change
2019-12-26 16:46:18 +00:00
dmiller
d639a53088
Bump copyright date in license headers
2019-05-28 21:36:04 +00:00
dmiller
aaf5075c67
Move probespec to its own header to reduce includes of scan_engine.h
2018-07-13 18:18:28 +00:00
fyodor
ff62300249
Bump copyright dates to 2018 and slightly improve wording (doesn't change meaning) of Nmap license header text
2018-01-28 21:18:17 +00:00
dmiller
9c7ea727a7
Update license terms for 2017
2017-06-07 12:32:38 +00:00
dmiller
ab5e247cee
Include netutil.h for IPPROTO_SCTP constant where necessary. Fixes #868
2017-04-26 18:55:16 +00:00
dmiller
339283d4b0
Remove some unused/overused includes
2017-04-19 14:53:24 +00:00
dmiller
891c3be3b9
remove tcpip.h from other headers' includes
2017-04-19 13:53:57 +00:00
dmiller
24f6cec25a
Move scan lists structs and functions to scan_lists files.
2017-04-19 04:14:43 +00:00
fyodor
4bd67aa2fb
Update the Nmap license/header text to reflect latest updates to docs/legal-notices.xml
2016-12-14 00:12:23 +00:00
tudor
0a7a7e395b
Scan iterator fix for compilation under Visual Studio 2010
2016-10-18 15:56:40 +00:00
tudor
9c8a435bbf
Fixed scanning the same IP multiple times with a type of scan that is now raw, incompleteHosts and completedHosts are now multisets instead of sets
2016-10-15 22:26:43 +00:00
dmiller
923f1de3e4
Increase const-ness of HssPredicate::operator() to avoid warnings.
2016-08-19 12:38:29 +00:00
tudor
074f99b291
UltraScanInfo::findHost is now faster
2016-08-10 15:39:19 +00:00
tudor
7c0280382e
incompleteHosts and completedHosts are now sets, matching a packet to a target is done faster
2016-08-09 06:07:22 +00:00
dmiller
6e33d6ac3c
Bump date in copyright headers
2016-04-04 15:38:44 +00:00
dmiller
e9bdcd811a
Strip tcpip.h of some unnecessary includes
2015-06-30 18:34:28 +00:00
dmiller
618cd6cfb2
Move some structs from global_structures.h to timing.h
2015-06-23 15:52:52 +00:00
dmiller
dfa969f3a2
Remove unneeded nmap.h and global_structures.h includes in .h files
2015-06-23 00:09:05 +00:00
dmiller
68409b2226
Update copyright date to 2015
2015-06-03 13:01:29 +00:00
d33tah
b9fb766a4f
Move a lot of raw/connect scanning routines.
2014-09-03 14:27:11 +00:00
d33tah
b6b92f6564
Move most (if not all) data structure declarations from scan_engine.cc
...
to scan_engine.h. Some method definitions remain in the header files and
should be moved to .cc later.
2014-09-03 14:27:04 +00:00
dmiller
5adfb3b1de
Update copyright notice to 2014
2014-08-16 01:52:33 +00:00
jay
8d5ec9e310
Reapply r33420, r33421. Fix a missing right parenthesis. https://xkcd.com/859/
2014-08-15 12:09:22 +00:00
fyodor
f6f59a7cd7
Auto regeneration with latest template files, etc.
2014-08-13 22:57:43 +00:00
jay
d4cf544df6
Fix a missing bracket at the end of the IMPORTANT NMAP LICENSE TERMS part in each file
2014-08-02 19:29:50 +00:00
d33tah
e3d1c178e3
Add newlines at the EOF in conformance to Daniel's coding standards
...
proposal. This only affects Nmap's root directory. We might also need to
modify the code which autogenerates Nmap's source code files such as IPv6
fingerprinting code.
2014-06-18 10:18:58 +00:00