feat: kernel network statistics reporting, new Network configuration applet
This commit is contained in:
@@ -58,6 +58,7 @@ namespace Montauk {
|
||||
static constexpr uint64_t SYS_FMKDIR = 78;
|
||||
static constexpr uint64_t SYS_DRIVELIST = 79;
|
||||
static constexpr uint64_t SYS_DRIVELABEL = 124;
|
||||
static constexpr uint64_t SYS_NETSTATUS = 125;
|
||||
static constexpr uint64_t SYS_TERMSCALE = 43;
|
||||
static constexpr uint64_t SYS_RESOLVE = 44;
|
||||
static constexpr uint64_t SYS_GETRANDOM = 45;
|
||||
@@ -142,6 +143,16 @@ namespace Montauk {
|
||||
uint32_t dnsServer; // network byte order
|
||||
};
|
||||
|
||||
struct NetStatus {
|
||||
uint8_t initialized;
|
||||
uint8_t linkUp;
|
||||
uint8_t polling;
|
||||
uint8_t _pad0;
|
||||
char driver[32];
|
||||
uint64_t rxPackets;
|
||||
uint64_t txPackets;
|
||||
};
|
||||
|
||||
struct DateTime {
|
||||
uint16_t Year;
|
||||
uint8_t Month;
|
||||
|
||||
Reference in New Issue
Block a user