1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-09 22:21:29 +00:00
Commit Graph

207 Commits

Author SHA1 Message Date
dmiller
3a39ec6d9b Ignore RTN_UNSPEC, possible with -e and -S. Fixes #2955 2025-10-14 18:43:59 +00:00
dmiller
b4e536f371 Only use eth handle for Ethernet on non-Windows systems. 2025-09-03 17:04:48 +00:00
dmiller
99e396b4a0 Fix various fatal errors around --send-eth 2025-09-03 17:04:47 +00:00
dmiller
5bb82a2ad0 Fix crash in socket_bindtodevice: NULL device is permissible 2025-09-03 17:04:46 +00:00
dmiller
b6c3989259 Fix incorrect macro definition for eth_handle_close on Windows 2025-07-15 17:48:34 +00:00
dmiller
67a796844f Consolidate raw socket acquisition. 2025-06-30 19:24:32 +00:00
dmiller
3499025302 Wrap dnet eth functions for non-Ethernet links 2025-06-23 20:54:32 +00:00
dmiller
7637ce3674 Consolidate send_ip*_eth() functions 2025-06-23 20:54:31 +00:00
dmiller
3496617f8f Check return value of getinterfaces. Fixes #3032 2025-06-09 19:58:44 +00:00
dmiller
cb5f577848 Remove crashing, unused debug code 2025-04-16 05:40:42 +00:00
dmiller
21e5cc67b4 Windows build fixes for libdnet-stripped 2025-04-11 16:39:12 +00:00
dmiller
5b52e7a3f2 Build fixes 2025-04-10 19:24:22 +00:00
dmiller
5f6bc69983 Account for VLAN header in pcap packets if needed. 2025-04-10 19:00:50 +00:00
dmiller
6db5c9cb85 Bump copyright date 2025-02-26 17:44:43 +00:00
dmiller
3b8a780c43 Use correct addresses for private networks 2025-01-17 16:27:17 +00:00
dmiller
390e0266db Consolidate private IP checking. Add IPv6. 2025-01-16 23:00:13 +00:00
dmiller
df1604ab19 Simplify pcap_select, remove timeval form 2024-10-28 23:11:51 +00:00
dmiller
b63eea5eea devname2ipaddr now requires address family, so correct addr is returned. 2024-06-20 20:14:30 +00:00
dmiller
326f8bb22b Accept targets from CLI even when -iL is used 2024-06-03 19:00:28 +00:00
dmiller
b940270375 Move random address generation to TargetGroup/NetBlock 2024-05-01 22:19:29 +00:00
dmiller
f999182d0f Bump date and reapply header templates 2024-02-28 18:46:45 +00:00
dmiller
5f58debc51 Handle RLIM_INFINITY as socket limit. 2023-09-01 21:12:19 +00:00
dmiller
6f6b2de214 Apply new license templates, bump copyright date 2023-04-14 17:11:46 +00:00
dmiller
5ae1b0fda2 Update static data in libnetutil 2022-10-21 21:15:46 +00:00
dmiller
de9f84d080 Get better error message. See #2179 2022-09-28 21:40:57 +00:00
dmiller
dd690b3e0b Bump copyright date and update some links [ci skip] 2022-02-18 17:38:46 +00:00
dmiller
04a206d60a Rename vars to avoid hiding global 2022-01-31 18:11:23 +00:00
dmiller
2cea59aca0 Allow cleanup of netutil's interfaces cache 2021-12-12 23:42:38 +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
d15747db32 Minor optimization for name resolution: null servname 2021-07-22 17:18:29 +00:00
nnposter
4564749ccd Reject non-useable routes. Fixes #2206 2021-01-18 20:11:40 +00:00
dmiller
67cccec38d Use checked_fd_set in 2 more places: bounce scan and pcap_select 2021-01-07 18:31:09 +00:00
nnposter
d3ef26b229 Silence GCC warning about string truncation. Fixes #2186 2020-11-26 02:29:39 +00:00
dmiller
ef8213a36c Reintegrate Nmap 7.90 release branch 2020-10-05 23:00:30 +00:00
dmiller
b03c96c326 Change a FIXME to a TODO with documentation of related issues #180 and #1407 2020-01-14 03:39:25 +00:00
dmiller
86f80305a1 Consolidate duplicate functions read_na_pcap and read_ns_reply_pcap. 2020-01-13 23:33:30 +00:00
dmiller
4ffeb09ad3 Use libnetutil's read_reply_pcap to deduplicate pcap reading logic. 2020-01-13 21:48:04 +00:00
dmiller
00cb4d22d9 Switch from pcap_next to pcap_next_ex to check for errors
This change supports #1394. When the network goes down, Nmap ought to
stop instead of slowing to an infinite crawl.
2020-01-13 17:14:45 +00:00
dmiller
898988dcd3 Remove dangling else 2019-12-26 16:46:17 +00:00
dmiller
7d1530476d Remove some unnecessary/constant comparisons. #1834 2019-12-25 20:01:17 +00:00
dmiller
5abe0aa8cc Combine/simplify conditional branches, eliminating dead code. See #1834 2019-12-22 21:50:55 +00:00
dmiller
77421962aa Remove mostly-unused winclude.h 2019-05-29 15:11:13 +00:00
dmiller
d639a53088 Bump copyright date in license headers 2019-05-28 21:36:04 +00:00
dmiller
57ff460847 Support names for all IP protocols in libnetutil. See #841 2019-05-22 16:40:49 +00:00
dmiller
f8004b792c Replace a config-time check with a ifndef that also works on Windows. 2018-11-21 06:23:08 +00:00
dmiller
30db709755 Optimistically revert mutex that was needed with WinPcap. Npcap likely is unaffected. 2018-10-03 16:57:54 +00:00
dmiller
534643aac6 Performance tweak for Windows. See #1327 2018-09-26 21:12:40 +00:00
dmiller
d6a04c465e Call pcap_set_immediate_mode to get results back immediately. 2018-08-21 04:51:33 +00:00
dmiller
7f1485f56d Switch to pcap_create instead of pcap_live_open. See #1291 2018-08-20 22:08:56 +00:00
nnposter
302954fb3f Rectifies incorrect use of va_start/va_end from stdarg.h. Closes #1297 2018-08-09 22:11:15 +00:00