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
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
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
李通洲
ed01272b91
LocalIP: detect netmask
2023-11-05 09:42:28 +08:00
李通洲
5e5c0b4a58
NetIO: improve performance
2023-09-27 10:31:35 +08:00
李通洲
917b049030
LocalIP: cache default route value
2023-09-26 21:49:01 +08:00
李通洲
4843dedb4d
LocalIp: filter --localip-default-route-only inside detection code
2023-09-26 20:57:02 +08:00
李通洲
24a6efa227
NetUsage: finish first working version
2023-09-26 19:54:19 +08:00
李通洲
57bd741d96
NetUsage (Linux): new module (WIP)
2023-09-26 11:20:26 +08:00
李通洲
50c8809d51
LocalIp (Linux): add ioCounter detection
2023-09-26 09:52:10 +08:00
李通洲
e48a7aa92f
LocalIP (Android): tidy
2023-07-19 15:44:40 +08:00
李通洲
1dc0ee183c
LocalIP (Android): fix crashing
2023-07-17 23:40:59 +08:00
李通洲
59dc2f82e3
LocalIP (Linux): fix build on Android
2023-07-17 23:03:56 +08:00
李通洲
68f71c5421
LocalIP (macOS): detect default route
2023-07-17 18:12:45 +08:00
李通洲
44faa3aa84
LocalIP (Linux): test default route
2023-07-17 10:41:53 +08:00
Linus Dierheimer
216ae71f7f
Don't use linux/if_packet.h
2023-06-12 16:02:56 +02:00
李通洲
7e85db6843
LocalIP: add JSON config support
2023-06-10 09:15:15 +08:00
李通洲
ad026f6105
LocalIP: backport mac address support
...
Also change `--*-ip-*` to `--*ip-*` to be consistant to my config branch
2023-06-08 22:22:05 +08:00
李通洲
26feccc0e4
LocalIP: simplify loop interface detection
2023-04-18 20:38:02 +08:00
李通洲
2c51252396
LocalIP: add support for Windows
2022-10-09 15:37:15 +08:00