diff options
author | Eric Leblond <eric@inl.fr> | 2008-03-10 23:41:43 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-03-10 23:41:43 (GMT) |
commit | cabaa9bfb01eb4cee97ffb8a18405f4c5175d3d9 (patch) | |
tree | d1d6e0227240b0600e61d53fe013d1adf8cff20d /net/can | |
parent | b5e85dee2a5433246d5b7488918a1a0ad22c046a (diff) | |
download | linux-fsl-qoriq-cabaa9bfb01eb4cee97ffb8a18405f4c5175d3d9.tar.xz |
[NETFILTER]: nfnetlink_queue: fix computation of allocated size for netlink skb.
Size of the netlink skb was wrongly computed because the formula was using
NLMSG_ALIGN instead of NLMSG_SPACE. NLMSG_ALIGN does not add the room for
netlink header as NLMSG_SPACE does. This was causing a failure of message
building in some cases.
On my test system, all messages for packets in range [8*k+41, 8*k+48] where k
is an integer were invalid and the corresponding packets were dropped.
Signed-off-by: Eric Leblond <eric@inl.fr>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/can')
0 files changed, 0 insertions, 0 deletions