-
-
Notifications
You must be signed in to change notification settings - Fork 360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Teach nut-scanner
to discover locally connected subnets: implement -m auto
mode
#2513
Conversation
…}: report the IP address (range, single, none) in the log [networkupstools#2244] Signed-off-by: Jim Klimov <[email protected]>
…pstools#2244] Signed-off-by: Jim Klimov <[email protected]>
…roper support [networkupstools#2244] Signed-off-by: Jim Klimov <[email protected]>
…ions [networkupstools#2244] Signed-off-by: Jim Klimov <[email protected]>
Signed-off-by: Jim Klimov <[email protected]>
… options and others behave differently without them [networkupstools#2244] Signed-off-by: Jim Klimov <[email protected]>
… introduce a way to scan several IP address ranges [networkupstools#2244] Signed-off-by: Jim Klimov <[email protected]>
…on-threaded scans too [networkupstools#2244] Signed-off-by: Jim Klimov <[email protected]>
…ice() from adding a list to itself Signed-off-by: Jim Klimov <[email protected]>
…etworkupstools#2244] We actually use DEFAULT_NETWORK_TIMEOUT from common.h same as in clients/upsclient.c Signed-off-by: Jim Klimov <[email protected]>
…scans do not parallelize together [networkupstools#2244] See also: networkupstools#2511 Signed-off-by: Jim Klimov <[email protected]>
…ymbols in libnutscan to use them in nut-scanner [networkupstools#2244] Signed-off-by: Jim Klimov <[email protected]>
…networkupstools#2244] Signed-off-by: Jim Klimov <[email protected]>
… and logged reports to help troubleshooting [networkupstools#2244] Signed-off-by: Jim Klimov <[email protected]>
… in the name, and use static structs and memcpy() to actually fix alignment warnings [networkupstools#2244] Signed-off-by: Jim Klimov <[email protected]>
…n-/semi-valid inputs [networkupstools#2244] Signed-off-by: Jim Klimov <[email protected]>
… actually fix alignment warnings Signed-off-by: Jim Klimov <[email protected]>
…h detection of configured network interfaces Signed-off-by: Jim Klimov <[email protected]>
…for debug printouts to be predictable on different platforms [networkupstools#2244] Signed-off-by: Jim Klimov <[email protected]>
…t as a real upsdebugx() trail [networkupstools#2244] Originally I intended to use these to check that the address parsing code works, and drop the printf() of these messages. But if I collect them into a string and upsdebug() it - why not, can help troubleshooting in real life later, too. Signed-off-by: Jim Klimov <[email protected]>
…etworkupstools#2244] Signed-off-by: Jim Klimov <[email protected]>
…{,6} so it is aligned how-ever the platform likes [networkupstools#2244] Signed-off-by: Jim Klimov <[email protected]>
…ifaddrs()" [networkupstools#2244] Signed-off-by: Jim Klimov <[email protected]>
…e handling whatever value of `-m` option [networkupstools#2244] Signed-off-by: Jim Klimov <[email protected]>
…ting discovered subnets into CIDR and adding to IP ranges for scanning [networkupstools#2244] Signed-off-by: Jim Klimov <[email protected]>
…2244] Signed-off-by: Jim Klimov <[email protected]>
…r/mask buffers [networkupstools#2244] Signed-off-by: Jim Klimov <[email protected]>
❌ Build nut 2.8.2.1879-master failed (commit 808d6725ae by @jimklimov) |
For WIN32 different methods are needed, mingw does not provide the POSIXish types and methods here:
For now will shunt the feature to have checkable it on POSIX systems at least. |
…es (for networking "-m auto" support) [networkupstools#2244] Signed-off-by: Jim Klimov <[email protected]>
…o" support for WIN32 (needs different implementation) [networkupstools#2244] Signed-off-by: Jim Klimov <[email protected]>
…mit selection of ranges to IPv4/IPv6 only [networkupstools#2244] Signed-off-by: Jim Klimov <[email protected]>
Added Worked "as is" even on MacOS:
For that matter, to filter usable addresses by flags on MacOS, there seems to be a difference of
|
✅ Build nut 2.8.2.1880-master completed (commit 6e8d6ec959 by @jimklimov) |
Follow-up from PR #2509 for issue #2244 to complete the feature. Separated because of need for longer testing and adaptation to different platforms and certain questions raised in #2509, while that PR has value of its own and can be merged to already allow multiple IP address range scans with one call to the tool.
Closes: #2244