net: Assert at build time the assumptions we make about the CMSG header.
authorDavid S. Miller <davem@davemloft.net>
Wed, 4 Jan 2017 18:24:19 +0000 (13:24 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Jan 2017 18:24:19 +0000 (13:24 -0500)
commitac4340fc3ce0e0b1cb627b05d6dcbd473544d7b3
tree4987c1a7d7ce5273097bab8debde9ba2fde343ee
parent1ff8cebf49ed9e9ca2ae44b5c4176aef9c21af9c
net: Assert at build time the assumptions we make about the CMSG header.

It must always be the case that CMSG_ALIGN(sizeof(hdr)) == sizeof(hdr).

Otherwise there are missing adjustments in the various calculations
that parse and build these things.

Signed-off-by: David S. Miller <davem@davemloft.net>
net/compat.c
net/socket.c