dankamongmen / libnetstack

Small library around rtnetlink to track networking stack elements
https://nick-black.com/dankwiki/index.php/Libnetstack
Apache License 2.0
10 stars 0 forks source link

Decode netlink errors meaningfully #39

Closed dankamongmen closed 5 years ago

dankamongmen commented 5 years ago

I added RTM_GETMULTICAST in as a larf (see #18 ), and we get the following output:

 [IPv6] ff00::/8 unicast boot metric 0 prio 256 in 0 out 52
Netlink error 0x7f4ab6e20e5c 0x7f4ab0000b30 0xadf260

which, what is that exactly.

dankamongmen commented 5 years ago

We now extract the errno, print it with strerror(), and record a stat.