Skip to content
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

Device: Handle network info data gathering ourselves #10139

Merged
merged 40 commits into from
Feb 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
e90f0c8
Device: Implement getDefaultRoute
NiLuJe Feb 18, 2023
3c8ff81
Oops, that wasn't the final revision of the code ;o)
NiLuJe Feb 18, 2023
7c2fcf9
SDL: Use getDefaultRoute in isConnected
NiLuJe Feb 18, 2023
fbeb1e7
Start revamping retrieveNetworkInfos to use getifaddrs
NiLuJe Feb 18, 2023
b9003be
Don't translate those
NiLuJe Feb 18, 2023
0d17b17
Check the flags to skip over loopback interfaces
NiLuJe Feb 18, 2023
7ccc809
Wrap it up w/o wireless ext handling
NiLuJe Feb 18, 2023
2ae0895
Unbreak union accesses
NiLuJe Feb 18, 2023
5c68a52
Drop the commented out example here, as we're using those in device, now
NiLuJe Feb 18, 2023
bca491e
Fix MAC parsing
NiLuJe Feb 18, 2023
30db238
Unbreak
NiLuJe Feb 18, 2023
aa5ed09
Don't insert gateway twice ;)
NiLuJe Feb 18, 2023
4bfbae7
Get the ESSID ourselves
NiLuJe Feb 19, 2023
d649ed1
Oops, forgot the ffi.string call ;o)
NiLuJe Feb 19, 2023
4b47f85
Add a linebreak between interfaces & the ping result
NiLuJe Feb 19, 2023
4e8376e
Use a smaller font, to avoid IPv6 breaking the layout too much...
NiLuJe Feb 19, 2023
d4ab9b9
Review pass
NiLuJe Feb 19, 2023
eff5228
Store that in a variable to clarify the content
NiLuJe Feb 19, 2023
af09429
Again, temporary variable with a sane name
NiLuJe Feb 19, 2023
b8ce3e1
Cosmetic tweak
NiLuJe Feb 19, 2023
e95a90b
Initial implementation of a DIY ping ;p
NiLuJe Feb 19, 2023
e6d64df
Do without a continue
NiLuJe Feb 20, 2023
21af610
Fix SOCK_DGRAM reply parsing, with the help of iputils
NiLuJe Feb 20, 2023
eb294a5
Tweak some comments
NiLuJe Feb 20, 2023
e0454d5
Switch to ping4 in retrieveNetworkInfo
NiLuJe Feb 20, 2023
9f9ec2d
Replace the standalone prints with logger
NiLuJe Feb 20, 2023
5d45a18
Spelling check ;p
NiLuJe Feb 20, 2023
7475bdb
Luachecked
NiLuJe Feb 20, 2023
57d4b18
Yeah, it's definitely disabled by default :D
NiLuJe Feb 20, 2023
a221f3e
More comment tweaks
NiLuJe Feb 20, 2023
b18dc5b
Use a less convoluted struct
NiLuJe Feb 20, 2023
329635b
Minor cosmetic tweaks
NiLuJe Feb 20, 2023
686b09f
Oh, hey, it's actually disabled by default, period :D.
NiLuJe Feb 20, 2023
1401da5
Translate all networkinfo strings
NiLuJe Feb 20, 2023
30fa051
Display the ping's RTT in networkinfo
NiLuJe Feb 20, 2023
4587cda
Fix ping formatting
NiLuJe Feb 20, 2023
fc72e93
Move RTT to a new line
NiLuJe Feb 20, 2023
aebafa6
Oops, brainfart
NiLuJe Feb 20, 2023
e824b12
Bump base
NiLuJe Feb 20, 2023
1960596
Bump base
NiLuJe Feb 20, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading