lkml.org 
[lkml]   [2007]   [Jul]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] net : make ip_tos2prio const
Hi all,

Make ip_tos2prio `const'.

Signed-off-by: Philippe De Muyter <phdm@macqel.be>

diff -r 6c0a10cc415a include/net/route.h
--- a/include/net/route.h Thu Jul 5 16:10:16 2007 -0700
+++ b/include/net/route.h Fri Jul 6 13:23:35 2007 +0200
@@ -136,7 +136,7 @@ static inline void ip_rt_put(struct rtab

#define IPTOS_RT_MASK (IPTOS_TOS_MASK & ~3)

-extern __u8 ip_tos2prio[16];
+extern const __u8 ip_tos2prio[16];

static inline char rt_tos2priority(u8 tos)
{
diff -r 6c0a10cc415a net/ipv4/route.c
--- a/net/ipv4/route.c Thu Jul 5 16:10:16 2007 -0700
+++ b/net/ipv4/route.c Fri Jul 6 13:23:35 2007 +0200
@@ -168,7 +168,7 @@ static struct dst_ops ipv4_dst_ops = {

#define ECN_OR_COST(class) TC_PRIO_##class

-__u8 ip_tos2prio[16] = {
+const __u8 ip_tos2prio[16] = {
TC_PRIO_BESTEFFORT,
ECN_OR_COST(FILLER),
TC_PRIO_BESTEFFORT,
-
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: 2007-07-06 13:33    [W:0.237 / U:0.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site