mirror of
https://github.com/troglobit/finit.git
synced 2026-11-15 19:13:11 +00:00
For RTM_GETLINK we need a `struct ifinfomsg`, not `struct rtmsg`, otherwise the kernel will get 8 extra bytes and complain about it. This patch makes sure to set the correct iface change mask as well, and increases the debug logs a bit to get a fix on sizes used. We increase the recv() buffer 8k -> 64k to make sure we can get all data in one big swoop. Plan is to refactor this mess in a later commit. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>