network-info
network-info copied to clipboard
Get information about local network adapters such as name, IP address, MAC address
If it is on purpose I'd appreaciate a ```diff --- a/network-info-0.2.0.10/src/Network/Info.hsc +++ b/network-info-0.2.0.10/src/Network/Info.hsc @@ -53,6 +53,8 @@ instance Storable NetworkInterface where mac
Hey! Thanks for this library, it's a big time saver. I know other type classes might not be desirable (aeson, hashable, etc) because of imports, but this seems like fairly...
I needed ipv6 addresses to at least include the scope-id, so I replaced your custom structure with SockAddr from network. I also added support for multiple addresses per interface. The...
Requiring a package that requires this on wasm target produces: ``` cbits/network-unix.c:16:16: error: fatal error: 'net/if_dl.h' file not found | 16 | # include | ^ # include ``` Presumably...
Not sure if it's possible but a command like `ip route` will tell you which interface is the default and this is necessary for my use case.
It would be nice to get the interface's netmask and broadcast address. On linux, they are simply members of struct ifaddrs (both possibly null; broadcast only relevant if flags &...