summaryrefslogtreecommitdiff
path: root/Userland/ifconfig.cpp
AgeCommit message (Collapse)Author
2019-09-23ifconfig: Allow setting an adapter's IPv4 addressAndreas Kling
You can now do things like "ifconfig e1k0 192.168.1.2" to set the IPv4 address of e1k0. Pretty neat!
2019-09-21LibCore: Convert CFile to ObjectPtrAndreas Kling
2019-09-06AK: Rename <AK/AKString.h> to <AK/String.h>Andreas Kling
This was a workaround to be able to build on case-insensitive file systems where it might get confused about <string.h> vs <String.h>. Let's just not support building that way, so String.h can have an objectively nicer name. :^)
2019-08-21Userland: Fix ifconfig use of /proc/net/adaptersConrad Pankoff
2019-08-08Kernel: Record network statistics and expose as JSONConrad Pankoff
This is comprised of five small changes: * Keep a counter for tx/rx packets/bytes per TCP socket * Keep a counter for tx/rx packets/bytes per network adapter * Expose that data in /proc/net_tcp and /proc/netadapters * Convert /proc/netadapters to JSON * Fix up ifconfig to read the JSON from netadapters
2019-06-16Kernel+Userland: Expose list of network adapters through /proc/netadapters.Andreas Kling
Added a simple /bin/ifconfig program that just pretty-prints that file. :^)