lkml.org 
[lkml]   [2001]   [Dec]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH] inet_ecn.h [2.4.16/2.5.0]
From
Date
...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
--


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:13    [W:0.033 / U:0.848 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site