| 
					
				 | 
			
			
				@@ -87,7 +87,7 @@ Signed-off-by: Felix Fietkau <[email protected]> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  	if (!net_eq(dev_net(dev), sock_net(sk))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  		goto drop; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-@@ -3329,6 +3331,7 @@ static int packet_create(struct net *net 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+@@ -3332,6 +3334,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; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-@@ -3955,6 +3958,16 @@ packet_setsockopt(struct socket *sock, i 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+@@ -3964,6 +3967,16 @@ packet_setsockopt(struct socket *sock, i 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  		po->xmit = val ? packet_direct_xmit : dev_queue_xmit; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  		return 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  	} 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -112,7 +112,7 @@ Signed-off-by: Felix Fietkau <[email protected]> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  	default: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  		return -ENOPROTOOPT; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  	} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-@@ -4007,6 +4020,13 @@ static int packet_getsockopt(struct sock 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+@@ -4016,6 +4029,13 @@ static int packet_getsockopt(struct sock 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  	case PACKET_VNET_HDR: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  		val = po->has_vnet_hdr; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  		break; 
			 |