Re: [PATCH] UDPCP Communication Protocol

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Eric Dumazet
Date: Friday, December 31, 2010 - 3:35 am

Le vendredi 31 décembre 2010 à 10:29 +0100, stefani@seibold.net a
écrit :


Dont do that. This hides an important thing : you use one extra byte in
skb->cb[] without being explicit.

As we have one byte hole in struct udp_skb_cbn, you could use it
instead.

diff --git a/include/net/udp.h b/include/net/udp.h
index bb967dd..ceafbbf 100644
--- a/include/net/udp.h
+++ b/include/net/udp.h
@@ -47,6 +47,7 @@ struct udp_skb_cb {
 	} header;
 	__u16		cscov;
 	__u8		partial_cov;
+	__u8		udpcp_flag;
 };
 #define UDP_SKB_CB(__skb)	((struct udp_skb_cb *)((__skb)->cb))
 


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] UDPCP Communication Protocol, stefani, (Fri Dec 31, 2:29 am)
Re: [PATCH] UDPCP Communication Protocol, Eric Dumazet, (Fri Dec 31, 3:00 am)
Re: [PATCH] UDPCP Communication Protocol, Eric Dumazet, (Fri Dec 31, 3:15 am)
Re: [PATCH] UDPCP Communication Protocol, Stefani Seibold, (Fri Dec 31, 3:22 am)
Re: [PATCH] UDPCP Communication Protocol, Stefani Seibold, (Fri Dec 31, 3:29 am)
Re: [PATCH] UDPCP Communication Protocol, Eric Dumazet, (Fri Dec 31, 3:35 am)
Re: [PATCH] UDPCP Communication Protocol, Eric Dumazet, (Fri Dec 31, 3:41 am)
Re: [PATCH] UDPCP Communication Protocol, Stefani Seibold, (Fri Dec 31, 4:23 am)
Re: [PATCH] UDPCP Communication Protocol, Eric Dumazet, (Fri Dec 31, 4:25 am)
Re: [PATCH] UDPCP Communication Protocol, Eric Dumazet, (Fri Dec 31, 4:54 am)
Re: [PATCH] UDPCP Communication Protocol, Stephen Hemminger, (Fri Dec 31, 10:46 am)
Re: [PATCH] UDPCP Communication Protocol, Stephen Hemminger, (Fri Dec 31, 10:46 am)
Re: [PATCH] UDPCP Communication Protocol, Stefani Seibold, (Sat Jan 1, 2:28 pm)
Re: [PATCH] UDPCP Communication Protocol, Stefani Seibold, (Sat Jan 1, 2:40 pm)