mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-03 11:44:18 +01:00
NetIO (*BSD): support OpenBSD & NetBSD
This commit is contained in:
@@ -48,7 +48,11 @@ const char* ffNetIOGetIoCounters(FFlist* result, FFNetIOOptions* options)
|
||||
.rxPackets = ifm->ifm_data.ifi_ipackets,
|
||||
.txErrors = ifm->ifm_data.ifi_oerrors,
|
||||
.rxErrors = ifm->ifm_data.ifi_ierrors,
|
||||
#ifdef _IFI_OQDROPS
|
||||
.txDrops = if2m->ifm_data.ifi_oqdrops,
|
||||
#else
|
||||
.txDrops = 0, // unsupported
|
||||
#endif
|
||||
.rxDrops = ifm->ifm_data.ifi_iqdrops,
|
||||
.defaultRoute = sdl->sdl_index == defaultRouteIfIndex,
|
||||
};
|
||||
|
||||
@@ -264,7 +264,7 @@ void ffInitNetIOOptions(FFNetIOOptions* options)
|
||||
|
||||
ffStrbufInit(&options->namePrefix);
|
||||
options->defaultRouteOnly =
|
||||
#ifdef __ANDROID__
|
||||
#if __ANDROID__ || __OpenBSD__
|
||||
false
|
||||
#else
|
||||
true
|
||||
|
||||
Reference in New Issue
Block a user