Thread (3 messages) 3 messages, 3 authors, 2013-11-21

Re: [RFC] wireless, ipv4, ipv6: drop GTK-protected unicast IP packets

From: Eric Dumazet <hidden>
Date: 2013-11-21 14:24:27
Also in: linux-wireless

On Thu, 2013-11-21 at 14:08 +0100, Johannes Berg wrote:
On Thu, 2013-11-21 at 14:05 +0100, Johannes Berg wrote:
quoted
@@ -498,7 +500,8 @@ struct sk_buff {
 	 * headers if needed
 	 */
 	__u8			encapsulation:1;
-	/* 7/9 bit hole (depending on ndisc_nodetype presence) */
+	__u8			drop_unicast:1;
The obvious question is here, and for IPv4/IPv6 - should the wireless
stack be responsible for doing this instead?
I don't really like the idea of reserving a bit for this in sk_buff,
and propagate it in every cloning ...

Someone should replace __copy_skb_header() by a single memset(),
because copying all these bits one by one is not really clever.

And then, adding a test in fast path (ip_rcv_finish()) is really not
nice.

I am not convinced this patch is the right way to solve the problem.



--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help