From a045629b04d5f328044ac2b0dddb7e11e6585336 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 13 Jun 2014 09:34:03 +0000 Subject: kernel: fix pkt_type filter mask for packet sockets Signed-off-by: Felix Fietkau git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41178 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/generic/patches-3.12/630-packet_socket_type.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'target/linux/generic/patches-3.12') diff --git a/target/linux/generic/patches-3.12/630-packet_socket_type.patch b/target/linux/generic/patches-3.12/630-packet_socket_type.patch index 1e915f61fb..60e840153b 100644 --- a/target/linux/generic/patches-3.12/630-packet_socket_type.patch +++ b/target/linux/generic/patches-3.12/630-packet_socket_type.patch @@ -102,7 +102,7 @@ Signed-off-by: Felix Fietkau + return -EINVAL; + if (copy_from_user(&val, optval, sizeof(val))) + return -EFAULT; -+ po->pkt_type = val & ~PACKET_LOOPBACK; ++ po->pkt_type = val & ~BIT(PACKET_LOOPBACK); + return 0; + } default: -- cgit v1.2.3