李通洲
61656a1a7a
Global: replaces __attribute__ to C23 [[attribute]]
2026-07-11 08:14:21 +08:00
李通洲
ba18705d2e
Global: replaces NULL to nullptr
2026-07-10 18:10:09 +08:00
Carter Li
d1bf208a92
Chore: renames stringUtils to strutil
2026-05-28 15:58:08 +08:00
李通洲
abc6c0593c
Chore: IndentPPDirectives: BeforeHash [ci skip]
2026-04-15 16:17:08 +08:00
李通洲
c7ecc33b64
Global: removes FFlist::elementSize
...
Improves performance of module Sound and PhysicalMemory
2026-04-14 15:47:26 +08:00
Carter Li
f6a363f7ad
Global: unifies GCC attributes usage
2026-04-09 20:02:04 +08:00
李通洲
831659966f
Style: adds Cpp11BracedListStyle: Block
2026-03-31 14:20:21 +08:00
李通洲
e0eba8ce21
Chore: run clang-format
...
```bash
find . -type f \( -name "*.c" -o -name "*.h" -o -name "*.cpp" -o -name "*.hpp" \) ! -path "src/3rdparty/*" -print0 | xargs -0 clang-format -i
```
2026-03-29 10:03:32 +08:00
李通洲
9b1061719c
Chore (OpenBSD): silences compiler warnings
2026-03-28 12:04:10 +08:00
李通洲
d3459af71f
LocalIP: removes usage of htonl
2026-03-18 18:52:24 +08:00
李通洲
00b5f17f0d
Global (Windows): prefers Rtl APIs
2026-03-18 18:36:41 +08:00
李通洲
72bdee7fbf
Global (Windows): prefers RtlUnicodeToUTF8N instead of WideCharToMultiByte
2026-03-11 22:40:13 +08:00
李通洲
b065b3da51
Global: optimises usage of FFstrbuf and FFlist
2026-01-09 20:14:00 +08:00
李通洲
4d185e64ac
SunOS: silences compiler warnings
2026-01-07 18:38:44 +08:00
Carter Li
d60b25e424
Refactor: renames src/util to src/common
2026-01-06 09:48:38 +08:00
Carter Li
61690a1804
Util: moves util/io/io.h to util/io.h
2026-01-06 09:13:40 +08:00
李通洲
1e43e35857
Chore: merges common/* into util/*
2026-01-05 17:54:41 +08:00
李通洲
1abfa70237
LocalIP: adds IPv6 type selection for local IP display
...
`{ "type": "localip", "showIpv6": "ula" /* Show ULA only */ }`
Fixes #1459
2025-09-10 13:42:48 +08:00
李通洲
8687505505
LocalIP (Linux): skips interfaces without IPs unless MAC display is enabled
2025-09-02 15:00:35 +08:00
Carter Li
13110e3074
LocalIP (GNU): adds MAC addr detection support
2025-08-24 22:15:06 +08:00
Carter Li
1d32344cf7
Global (GNU): code cleanups
2025-08-24 19:37:06 +08:00
Yelninei
53424300e3
localip: Remove AF_LINK on GNU.
...
https://salsa.debian.org/glibc-team/glibc/-/blob/sid/debian/patches/hurd-i386/submitted-AF_LINK.diff
2025-08-24 11:29:02 +01:00
Yelninei
add2bfd108
Fix localip_linux on GNU
2025-08-24 11:29:01 +01:00
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