mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-26 13:49:35 -05:00
netlink: Do not use void pointer for pointer arithmetic
This is a non-standard extension in gcc, so better not depend on it.
This commit is contained in:
parent
39b97072b2
commit
ea08bfe384
@ -34,7 +34,7 @@ static void netlink_receive_link(struct netlink_data *netlink,
|
|||||||
if (cb == NULL || NLMSG_PAYLOAD(h, 0) < sizeof(struct ifinfomsg))
|
if (cb == NULL || NLMSG_PAYLOAD(h, 0) < sizeof(struct ifinfomsg))
|
||||||
return;
|
return;
|
||||||
cb(netlink->cfg->ctx, NLMSG_DATA(h),
|
cb(netlink->cfg->ctx, NLMSG_DATA(h),
|
||||||
NLMSG_DATA(h) + NLMSG_ALIGN(sizeof(struct ifinfomsg)),
|
(u8 *) NLMSG_DATA(h) + NLMSG_ALIGN(sizeof(struct ifinfomsg)),
|
||||||
NLMSG_PAYLOAD(h, sizeof(struct ifinfomsg)));
|
NLMSG_PAYLOAD(h, sizeof(struct ifinfomsg)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user