projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
linux: generic: refresh patches for 3.1-rc10
[openwrt/openwrt.git]
/
target
/
linux
/
generic
/
patches-3.1
/
630-packet_socket_type.patch
diff --git
a/target/linux/generic/patches-3.1/630-packet_socket_type.patch
b/target/linux/generic/patches-3.1/630-packet_socket_type.patch
index cdbb787aa53ea12971af8cd2397c775be016509e..e295ce1d1ee659fad30a2c00ff8811f4eaa72c20 100644
(file)
--- a/
target/linux/generic/patches-3.1/630-packet_socket_type.patch
+++ b/
target/linux/generic/patches-3.1/630-packet_socket_type.patch
@@
-75,7
+75,7
@@
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
if (!net_eq(dev_net(dev), sock_net(sk)))
goto drop;
if (!net_eq(dev_net(dev), sock_net(sk)))
goto drop;
-@@ -99
4,12 +997
,12 @@ static int tpacket_rcv(struct sk_buff *s
+@@ -99
7,12 +1000
,12 @@ static int tpacket_rcv(struct sk_buff *s
struct timespec ts;
struct skb_shared_hwtstamps *shhwtstamps = skb_hwtstamps(skb);
struct timespec ts;
struct skb_shared_hwtstamps *shhwtstamps = skb_hwtstamps(skb);
@@
-91,7
+91,7
@@
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
if (!net_eq(dev_net(dev), sock_net(sk)))
goto drop;
if (!net_eq(dev_net(dev), sock_net(sk)))
goto drop;
-@@ -182
6,6 +1829
,7 @@ static int packet_create(struct net *net
+@@ -182
9,6 +1832
,7 @@ static int packet_create(struct net *net
spin_lock_init(&po->bind_lock);
mutex_init(&po->pg_vec_lock);
po->prot_hook.func = packet_rcv;
spin_lock_init(&po->bind_lock);
mutex_init(&po->pg_vec_lock);
po->prot_hook.func = packet_rcv;
@@
-99,7
+99,7
@@
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
if (sock->type == SOCK_PACKET)
po->prot_hook.func = packet_rcv_spkt;
if (sock->type == SOCK_PACKET)
po->prot_hook.func = packet_rcv_spkt;
-@@ -241
0,6 +2414
,16 @@ packet_setsockopt(struct socket *sock, i
+@@ -241
3,6 +2417
,16 @@ packet_setsockopt(struct socket *sock, i
return fanout_add(sk, val & 0xffff, val >> 16);
}
return fanout_add(sk, val & 0xffff, val >> 16);
}
@@
-116,7
+116,7
@@
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
default:
return -ENOPROTOOPT;
}
default:
return -ENOPROTOOPT;
}
-@@ -24
67,6 +2481
,13 @@ static int packet_getsockopt(struct sock
+@@ -24
70,6 +2484
,13 @@ static int packet_getsockopt(struct sock
data = &val;
break;
data = &val;
break;