mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
net-next: replace obsolete NLMSG_* with type safe nlmsg_*
Signed-off-by: Hong Zhiguo <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
e5c5d22e8d
commit
573ce260b3
18 changed files with 48 additions and 50 deletions
|
|
@ -35,7 +35,7 @@
|
|||
#include <linux/skbuff.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/timer.h>
|
||||
#include <linux/netlink.h>
|
||||
#include <net/netlink.h>
|
||||
#include <linux/netdevice.h>
|
||||
#include <linux/netfilter/x_tables.h>
|
||||
#include <linux/netfilter_bridge/ebtables.h>
|
||||
|
|
@ -134,7 +134,7 @@ static void ebt_ulog_packet(unsigned int hooknr, const struct sk_buff *skb,
|
|||
else
|
||||
copy_len = uloginfo->cprange;
|
||||
|
||||
size = NLMSG_SPACE(sizeof(*pm) + copy_len);
|
||||
size = nlmsg_total_size(sizeof(*pm) + copy_len);
|
||||
if (size > nlbufsiz) {
|
||||
pr_debug("Size %Zd needed, but nlbufsiz=%d\n", size, nlbufsiz);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue