tree-wide: also use CMSG_TYPED_DATA() on writing message header

This commit is contained in:
Yu Watanabe
2023-04-16 13:26:58 +09:00
parent 1ebb0953f0
commit b5d39bb3ca
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -407,7 +407,7 @@ static int dhcp_server_send_udp(sd_dhcp_server *server, be32_t destination,
rather than binding the socket. This will be mostly useful
when we gain support for arbitrary number of server addresses
*/
pktinfo = (struct in_pktinfo*) CMSG_DATA(cmsg);
pktinfo = CMSG_TYPED_DATA(cmsg, struct in_pktinfo);
assert(pktinfo);
pktinfo->ipi_ifindex = server->ifindex;