dmiller
08a074881b
Avoid extra copying and simplify hexdump()
2026-08-31 16:17:40 +00:00
dmiller
ba30f7245f
Check for non-finite and dangerous values from strtod()
2026-08-29 21:34:19 +00:00
dmiller
d8c9880cd5
Consolidate inet_ntop_ez-like code from throughout
nmap multiplatform autobuilds / build (arm64, gcc, ubuntu-latest-gcc-arm64, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, freebsd-15-clang, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, macos-15-clang, macos-15) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, macos-26-clang, macos-26) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, netbsd-10-clang, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, openbsd-7-clang, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, solaris-11-clang, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, ubuntu-latest-clang, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (egcc, openbsd-7-gcc, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (gcc, freebsd-15-gcc, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (gcc, netbsd-10-gcc, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (gcc, solaris-11-gcc, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (gcc, ubuntu-latest-gcc, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (msvc, windows-latest-msvc, windows-latest) (push) Has been cancelled
2026-06-11 23:28:26 +00:00
dmiller
323d875df8
Ensure nbase's hexdump doesn't print too much
2026-05-06 21:38:09 +00:00
dmiller
ab973f548a
Nbase: make checksum functions const, avoid undefined behavior in shifts
2026-04-20 15:21:54 +00:00
dmiller
95d380b836
Bump copyright date to 2026 [skip ci]
2026-02-16 22:33:40 +00:00
dmiller
5bb82a2ad0
Fix crash in socket_bindtodevice: NULL device is permissible
2025-09-03 17:04:46 +00:00
dmiller
6db5c9cb85
Bump copyright date
2025-02-26 17:44:43 +00:00
dmiller
dd7b7d76e8
socket_bindtodevice: make whole function conditional on SO_BINDTODEVICE definition
2025-02-10 20:32:48 +00:00
dmiller
f1559fbc22
Use a socket, not pipe, for STDIN emulation in fselect
...
Using a TCP connected socket allows us to use a single select call instead of
interrupting it every 125ms to poll the stdin-pipe.
2024-10-30 18:55:39 +00:00
dmiller
f999182d0f
Bump date and reapply header templates
2024-02-28 18:46:45 +00:00
dmiller
6f6b2de214
Apply new license templates, bump copyright date
2023-04-14 17:11:46 +00:00
dmiller
ed19887f41
More efficiently check if any non-stdin fds are in the call to select on Windows
2022-09-23 21:42:00 +00:00
dmiller
8dbefeba86
Don't wait around if STDIN has data. Closes #2426
2022-09-23 21:41:59 +00:00
dmiller
6fd0261731
Also check fd_set operations on Windows. Fixes #455
2022-09-23 01:35:09 +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
c9b7c2f590
Moar const
2021-04-26 17:58:01 +00:00
dmiller
ef8213a36c
Reintegrate Nmap 7.90 release branch
2020-10-05 23:00:30 +00:00
dmiller
8e65c92264
Pass error along instead of printing (link error)
2020-09-02 17:05:55 +00:00
dmiller
083475eb6f
Use larger buffer size for socket errors (WSAETIMEDOUT was longer).
2020-08-31 21:11:00 +00:00
dmiller
8f3364a441
Remove more vestiges of Windows raw socket quirks
2020-01-16 19:12:57 +00:00
dmiller
d639a53088
Bump copyright date in license headers
2019-05-28 21:36:04 +00:00
dmiller
01e7430797
Remove the old optparse function; options must be specified with hyphens.
2018-02-20 17:37:47 +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
dace53a931
Avoid selecting on STDIN on Windows. Fixes #978
2017-09-30 15:34:35 +00:00
dmiller
9c7ea727a7
Update license terms for 2017
2017-06-07 12:32:38 +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
1e1f744186
Added IOCP integration for Nsock, engine IOCP is the default engine on Windows
2016-08-22 19:15:13 +00:00
tudor
63b31682f4
Reverted the IOCP integration
2016-08-11 18:58:03 +00:00
tudor
1aa7958e23
Added IOCP integration for Nsock
2016-08-09 12:44:55 +00:00
dmiller
6e33d6ac3c
Bump date in copyright headers
2016-04-04 15:38:44 +00:00
gio
730c9936bb
Keep nbase compatible with old C compilers
2015-08-18 16:21:25 +00:00
gio
15840e1793
Move sockadd_storage helpers functions to appropriate files
2015-07-30 06:27:13 +00:00
dmiller
68409b2226
Update copyright date to 2015
2015-06-03 13:01:29 +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
dmiller
3f0d0c16f9
Spellcheck on Nmap, Nsock, Nbase source files
2014-02-20 18:44:12 +00:00
d33tah
ccd0c02a4c
Add a lacking space in the license comment. The command I used to do this is:
...
for file in `grep "* including the terms and conditions of this license text as well. \*" * -r --files-with-match `; do sed "s/\* including the terms and conditions of this license text as well. \*/* including the terms and conditions of this license text as well. */g" -i $file; done
2013-09-11 19:06:20 +00:00
d33tah
384b9a1f8e
Fix the syntax error from the previous commit (tried to compile under Linux).
2013-08-09 17:16:48 +00:00
d33tah
ece95926cb
Fix the silly mistake that happened when copying code (using wrong variables).
2013-08-09 17:07:12 +00:00
d33tah
c68114f9bc
Change the usleep call to match the other one.
2013-08-09 16:59:30 +00:00
d33tah
9f335c6bdb
Merge in the fix for fselect Windows bug causing a CPU-intensive loop when we only select on stdin.
2013-08-09 13:02:43 +00:00
d33tah
b2187f6749
Remove most tabs in nbase. This probably needs some fixes, but the tabs really confused my vim.
2013-08-09 00:16:52 +00:00
fyodor
6e01ecd452
Update an email address, fix a typo, and slightly reword a sentence.
2013-07-30 00:02:00 +00:00
fyodor
83fb10ec56
Update the Nmap copyright/license files. This isn't the new Nmap Public Source License we've been discussing on the list, but rather just a 'quick patch' to hopefully prevent some of the abuse we've been seeing from companies lately. More details on the changes will be posted to the dev list. Also, the copyright year was updated to 2013 (which is the only change to Nsock license statements).
2013-07-28 22:05:05 +00:00
henri
63aa6d83fb
Improved error handling in socket_block/unblock.
2013-07-18 20:29:29 +00:00
d33tah
85e52bf928
fix some typos in comments I found while reading Nbase's code
2013-06-28 15:37:20 +00:00