libdnet
libdnet copied to clipboard
fix payload size of Netlink message in route_get()
The len
parameter of NLMSG_LENGTH
was size of Netlink header instead of RtNetlink header.
Also make it more clear that the parameter of the macro is the payload size, which is RtNetlink message in this case.