netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* comment about struct tcp_tw_bucket in struct sock
@ 2003-05-13 21:05 Olaf Hering
  2003-05-13 23:31 ` David S. Miller
  0 siblings, 1 reply; 14+ messages in thread
From: Olaf Hering @ 2003-05-13 21:05 UTC (permalink / raw)
  To: Marcelo Tosatti, David S. Miller; +Cc: netdev

Hi,

we just hit this one. struct tcp_tw_bucket and stuct sock must match.

Please apply.



--- linux-2.4/include/net/sock.h	2003-04-24 17:11:20.000000000 +0200
+++ linux-2.4.21-rc2/include/net/sock.h	2003-05-13 23:00:32.000000000 +0200
@@ -498,6 +498,10 @@ do {	spin_lock_init(&((__sk)->lock.slock
 } while(0)
 
 struct sock {
+	/* These _must_ match the beginning of struct tcp_tw_bucket precisely.
+	 * XXX Yes I know this is gross, but I'd have to edit every single
+	 * XXX networking file if I created a "struct sock_header". -DaveM
+	 */
 	/* Socket demultiplex comparisons on incoming packets. */
 	__u32			daddr;		/* Foreign IPv4 addr			*/
 	__u32			rcv_saddr;	/* Bound local IPv4 addr		*/

-- 
USB is for mice, FireWire is for men!

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2003-05-22  8:02 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-13 21:05 comment about struct tcp_tw_bucket in struct sock Olaf Hering
2003-05-13 23:31 ` David S. Miller
2003-05-14  2:44   ` Arnaldo Carvalho de Melo
2003-05-14  8:00   ` Olaf Hering
2003-05-14 19:17     ` David S. Miller
2003-05-14 19:23       ` Andi Kleen
2003-05-14 19:34         ` David S. Miller
2003-05-14 19:57           ` Andi Kleen
2003-05-14 20:02             ` David S. Miller
2003-05-14  8:32   ` Andi Kleen
2003-05-14 19:18     ` David S. Miller
2003-05-14 19:21       ` Andi Kleen
2003-05-22  0:52         ` Arnaldo Carvalho de Melo
2003-05-22  8:02           ` Andi Kleen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).