Yelninei
71fbe04367
Start work on GNU
2025-08-24 11:29:01 +01:00
李通洲
8589bf2392
Chore: silence compiler warnings
2025-08-23 15:31:42 +08:00
李通洲
b994ce5b55
LocalIP: refines default route detection and JSON output for local IPs
...
Add verbose log for Windows
2025-08-16 18:27:30 +08:00
李通洲
c4cb6c65a9
LocalIP (Linux): add verbose debug log
2025-08-16 04:43:28 +00:00
李通洲
46081a3e52
LocalIP (Linux): fixes incorrect return and ensures struct initialization
2025-08-16 04:24:26 +00:00
李通洲
a5fd671b92
LocalIP: fix showMac does not honor defaultRouteOnly
2025-08-15 20:20:43 +08:00
Carter Li
a7347130de
LocalIP (Linux): fix building
2025-08-09 22:20:04 +08:00
Carter Li
f3c82ad837
LocalIP (SunOS): add speed detection support
2025-08-09 19:53:31 +08:00
Carter Li
1bde2b31f9
LocalIP (SunOS): support isIPv6AddressPreferred
2025-08-09 19:27:07 +08:00
Carter Li
1edc617b55
LocalIP (SunOS): add more if flags
2025-08-09 19:19:50 +08:00
李通洲
2bb451d9e4
LocalIP (Linux): fix compiler warnings
2025-08-09 18:44:37 +08:00
Carter Li
f96ddb4c10
LocalIP (BSD): fix compiling
2025-08-08 15:32:12 +08:00
李通洲
33983c5402
LocalIP: improve preferred IPv6 address detection
2025-08-08 14:40:04 +08:00
李通洲
be11013ae2
LocalIP (BSD): fix building
2025-08-07 23:28:54 +08:00
Carter Li
a84c4dc1f4
Netif: refactor API for dual-stack route detection
...
Unifies IPv4 and IPv6 default route queries under a shared result structure and per-family functions. Improves clarity and extensibility by centralizing route logic, streamlining detection of preferred interfaces, and updating all consumers to use the new API.
Prepares for more robust multi-protocol network information handling.
2025-08-07 16:35:42 +08:00
Jannis Pohl
5e770dc8b0
LocalIP: consider preferred source address when retrieving default route ( #1883 )
...
* LocalIP: consider preferred source address when retrieving default route
* LocalIP: fix logic error when there is no preferred source address
* LocalIP: use macros rather than manual free/close
* LocalIP(BSD): fix build error
* LocalIP: address Copilot suggestions
2025-08-05 23:30:06 +08:00
李通洲
137d5dfe90
LocalIP (Windows): show only preferred IP when showAllIPs is not set
...
Ref: #1883
2025-08-05 19:35:54 +08:00
李通洲
75d2c668d0
Modules: refactor module option handling for static allocation
...
Moves module option structs out of global config and removes dynamic allocation, using static buffers and size assertions for safer, simpler management.
Refactors module initialization and destruction to work with isolated option structs, eliminating the need for the previous modules container and related code.
Unifies module option header usage and updates detection logic to leverage statically-sized option buffers, improving encapsulation and maintainability.
Simplifies module function signatures and reduces coupling between modules and config.
Enhances future extensibility and reliability by enforcing max size constraints and removing unnecessary indirections.
2025-08-04 14:46:01 +08:00
李通洲
f0fc38bcb5
LocalIP (Windows): fix link speed calcuation
2025-07-24 20:11:04 +08:00
李通洲
e7a6b84107
LocalIP (Windows): ignore stopped interfaces
2025-07-24 19:31:41 +08:00
François Revol
01f400c15f
Haiku: minimal implementation ( #1538 )
2025-02-05 09:08:28 +08:00
李通洲
7c8250c68c
StringUtil: rename ffStrCopy and correctly reflect its usage
2024-11-11 18:02:23 +08:00
Carter Li
f7288fec01
Global: support DragonFly BSD
2024-11-03 08:35:11 +08:00
李通洲
4665fdd145
Global: make it compile on NetBSD
...
Doesn't work yet.
2024-10-27 11:43:36 +08:00
李通洲
b257134d74
Chore: introduce macro ARRAY_SIZE
2024-10-18 16:44:41 +08:00
李通洲
48bb5b8746
Chore: use ffStrCopyN instead of strlcpy
2024-10-17 22:29:38 +08:00
李通洲
993902916d
Chore: don't use strncpy in favor of strlcpy
...
strncpy doesn't require target to be NUL terminated
2024-10-17 16:16:04 +08:00
Carter Li
320283a538
LocalIP: fix bug that flags are appended multiple times
2024-10-05 10:28:43 +08:00
apocelipes
40ab735e6b
LocalIp: support get interface flags ( #1315 )
2024-10-05 09:49:27 +08:00
Carter Li
a32d9d788c
OpenBSD: init platform support
2024-10-04 17:49:18 +08:00
李通洲
d06f9a1509
Chore (Windows): silence some warnings
2024-10-04 17:49:18 +08:00
Carter Li
0eecdd16ea
LocalIP (FreeBSD): don't use Wifi speed as Ethernet speed
2024-09-15 13:17:53 +08:00
Carter Li
c58f4c24c4
LocalIP: add new option --show-localip-{speed,mtu}
2024-09-15 00:48:13 +08:00
李通洲
f6ccbf7711
LocalIP (Android): fix build
2024-08-24 17:34:41 +08:00
李通洲
e6fb545d1d
LocalIP (Linux): try fixing musl build
2024-08-24 15:21:12 +08:00
李通洲
ce7ecd3863
LocalIP: make link speed formattable
...
Fix #1209
2024-08-24 14:47:15 +08:00
李通洲
34bc662065
LocalIP: detect ethernet speed
2024-08-24 13:34:20 +08:00
李通洲
64cdb3f058
LocalIP: silence compiler warnings
2024-07-03 15:26:53 +08:00
Carter Li
5926c259ed
SunOS: support MTU & MAC addr detection
2024-06-17 22:29:18 +08:00
Carter Li
d35490aeef
Fastfetch: make it compile on SunOS
2024-06-16 01:02:48 +08:00
李通洲
5539fecb99
LocalIP: detect MTU
2024-06-14 18:23:04 +08:00
李通洲
be1791e386
LocalIP: add option --localip-show-all-ips
2024-05-13 23:33:06 +08:00
Carter Li
39da11de8e
LocalIP (BSD): fix build
2024-04-04 19:42:33 +08:00
李通洲
a2d99695fd
LocalIP: add new option localip-show-prefix-len
2024-04-04 10:42:44 +08:00
李通洲
3a2786a89f
LocalIP: support network prefix detection for IPv6
2024-04-04 10:19:01 +08:00
李通洲
a6cb30d6c8
LocalIP: print all IPs if multiple IPs are assigned to the same interface
2024-04-04 10:09:06 +08:00
李通洲
de6b1f9542
LocalIP (Linux): fix network prefix detection when the value is greater than 24
2024-04-04 10:08:26 +08:00
李通洲
f9597eba39
Global: remove #ifndef FF_INCLUDED_* guards
2023-11-09 13:46:45 +08:00
李通洲
ed01272b91
LocalIP: detect netmask
2023-11-05 09:42:28 +08:00
李通洲
5e5c0b4a58
NetIO: improve performance
2023-09-27 10:31:35 +08:00