public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] inet_ecn.h [2.4.16/2.5.0]
@ 2001-12-02 12:23 Herbert Valerio Riedel
  2001-12-03  0:09 ` David S. Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Herbert Valerio Riedel @ 2001-12-02 12:23 UTC (permalink / raw)
  To: marcelo; +Cc: linux-kernel

...the following allows to build a kernel without CONFIG_INET...

--- /usr/src/linux/include/net/inet_ecn.h	Sat Nov  3 23:50:06 2001
+++ inet_ecn.h	Sun Dec  2 13:15:57 2001
@@ -24,8 +24,13 @@
 	return outer;
 }
 
+#if defined(CONFIG_INET) || defined (CONFIG_INET_MODULE)
 #define	INET_ECN_xmit(sk) do { (sk)->protinfo.af_inet.tos |= 2; } while (0)
 #define	INET_ECN_dontxmit(sk) do { (sk)->protinfo.af_inet.tos &= ~3; } while (0)
+#else
+#define	INET_ECN_xmit(sk)
+#define	INET_ECN_dontxmit(sk)
+#endif
 
 #define IP6_ECN_flow_init(label) do {	\
       (label) &= ~htonl(3<<20);		\



regards,
hvr
--



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

* Re: [PATCH] inet_ecn.h [2.4.16/2.5.0]
  2001-12-02 12:23 [PATCH] inet_ecn.h [2.4.16/2.5.0] Herbert Valerio Riedel
@ 2001-12-03  0:09 ` David S. Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2001-12-03  0:09 UTC (permalink / raw)
  To: hvr; +Cc: marcelo, linux-kernel

   From: Herbert Valerio Riedel <hvr@kernel.org>
   Date: 02 Dec 2001 13:23:29 +0100

   ...the following allows to build a kernel without CONFIG_INET...

That's not the correct fix, the correct one has been sent
to Marcelo.  The net/core/*.c files are a little over agressive
in including TCP/IP headers when they shouldn't.

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

end of thread, other threads:[~2001-12-03  8:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-02 12:23 [PATCH] inet_ecn.h [2.4.16/2.5.0] Herbert Valerio Riedel
2001-12-03  0:09 ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox