Searched hist:f49c857f (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/net/netfilter/ |
H A D | nfnetlink.c | f49c857f Tue Jun 02 13:03:33 CDT 2009 Pablo Neira Ayuso <pablo@netfilter.org> netfilter: nfnetlink: cleanup for nfnetlink_rcv_msg() function
This patch cleans up the message handling path in two aspects:
* it uses NLMSG_LENGTH() instead of NLMSG_SPACE() like rtnetlink does in this case to check if there is enough room for the Netlink/nfnetlink headers. No need to check for the padding room.
* it removes a redundant header size checking that has been already do at the beginning of the function.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> f49c857f Tue Jun 02 13:03:33 CDT 2009 Pablo Neira Ayuso <pablo@netfilter.org> netfilter: nfnetlink: cleanup for nfnetlink_rcv_msg() function This patch cleans up the message handling path in two aspects: * it uses NLMSG_LENGTH() instead of NLMSG_SPACE() like rtnetlink does in this case to check if there is enough room for the Netlink/nfnetlink headers. No need to check for the padding room. * it removes a redundant header size checking that has been already do at the beginning of the function. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
|