summaryrefslogtreecommitdiff
path: root/Userland/Utilities/netstat.cpp
AgeCommit message (Collapse)Author
2021-12-30Utilities/netstat: Propagate errors in JSON decodingcreator1creeper1
2021-11-30netstat: Port to LibMain :^)Andreas Kling
2021-11-17AK: Make JSON parser return ErrorOr<JsonValue> (instead of Optional)Andreas Kling
Also add slightly richer parse errors now that we can include a string literal with returned errors. This will allow us to use TRY() when working with JSON data.
2021-08-13Utilities: Add program argument for netstat to display connection pidbrapru
Adds netstat command line argument to display slash-separated pair of the id and name of the process that owns the socket. User must have superuser privileges to see information on non-owned sockets.
2021-05-31Userland: Avoid a bunch of JsonObject copiesLinus Groh
JsonValue::as_object() returns a reference.
2021-05-15Utilities: Implement a netstat commandbrapru
This implementation of netstat presents an overview of existing network sockets. It directly reads the exposed sockets from /proc/net/. Current support is limited to information regarding TCP and UDP connections. Future improvements could include presenting information regarding local sockets.