Closed mmaraya closed 8 years ago
The netlink macro NLMSG_OK
produces the error by comparing an unsigned uint32_t
with a signed ssize_t
. Rewrote the NLMSG_OK
macro into a function in 70bd14901267f7c2dc3af2ce73d3fcd053d6fb50 and type casted one of the operands.
https://github.com/mmaraya/port-mirroring/blob/8ac5075e976e73dbb88c9a98d6c0d43958864ec2/src/port-mirroring.c#L514
NLMSG_OK from netlink expands to: