|
|
@@ -87,7 +87,7 @@ Signed-off-by: Felix Fietkau <[email protected]>
|
|
|
if (!net_eq(dev_net(dev), sock_net(sk)))
|
|
|
goto drop;
|
|
|
|
|
|
-@@ -3437,6 +3439,7 @@ static int packet_create(struct net *net
|
|
|
+@@ -3436,6 +3438,7 @@ static int packet_create(struct net *net
|
|
|
mutex_init(&po->pg_vec_lock);
|
|
|
po->rollover = NULL;
|
|
|
po->prot_hook.func = packet_rcv;
|
|
|
@@ -95,7 +95,7 @@ Signed-off-by: Felix Fietkau <[email protected]>
|
|
|
|
|
|
if (sock->type == SOCK_PACKET)
|
|
|
po->prot_hook.func = packet_rcv_spkt;
|
|
|
-@@ -4104,6 +4107,16 @@ packet_setsockopt(struct socket *sock, i
|
|
|
+@@ -4103,6 +4106,16 @@ packet_setsockopt(struct socket *sock, i
|
|
|
packet_sock_flag_set(po, PACKET_SOCK_QDISC_BYPASS, val);
|
|
|
return 0;
|
|
|
}
|
|
|
@@ -112,7 +112,7 @@ Signed-off-by: Felix Fietkau <[email protected]>
|
|
|
default:
|
|
|
return -ENOPROTOOPT;
|
|
|
}
|
|
|
-@@ -4163,6 +4176,13 @@ static int packet_getsockopt(struct sock
|
|
|
+@@ -4162,6 +4175,13 @@ static int packet_getsockopt(struct sock
|
|
|
case PACKET_VNET_HDR_SZ:
|
|
|
val = READ_ONCE(po->vnet_hdr_sz);
|
|
|
break;
|