From e7539f1d3620286559d298b81dc5ca1672af4733 Mon Sep 17 00:00:00 2001
From: Torsten Schmidt <email@example.com>
Date: Tue, 22 Dec 2009 12:49:54 +0100
Subject: [PATCH] ipv4: add DiffServ priority based routing
Enables IPv4 Differentiated Services support for IP priority based
routing. Notice that the IP TOS field was redefined 1998 to DiffServ
(RFC 2474). Type Of Service is deprecated since 1998 !
This patch adds a compliant flag to net/ipv4/Kconfig, which allows
the user to select DiffServ ore TOS priority based routing. Default
answer is TOS.
Signed-off-by: Torsten Schmidt <firstname.lastname@example.org>
include/net/route.h | 4 ++++
net/ipv4/Kconfig | 15 +++++++++++++++
2 files changed, 19 insertions(+), 0 deletions(-)
@@ -141,7 +141,11 @@ extern const __u8 ip_tos2prio;
static inline char rt_tos2priority(u8 tos)
+ return tos >> 5;
static inline int ip_route_connect(struct rtable **rp, __be32 dst,
@@ -272,6 +272,21 @@ config IP_PIMSM_V2
gated-5). This routing protocol is not used widely, so say N unless
you want to play with it.
+ bool "IP: DiffServ priority routing"
+ default n
+ Enables IPv4 Differentiated Services support for IP priority based
+ routing. If you say YES here, TOS priority based routing is disabled.
+ Notice that the IP TOS field was redefined 1998 to DiffServ (RFC 2474).
+ Type Of Service is deprecated since 1998 ! So in future default answer
+ should be YES.
+ Y: DiffServ
+ N: Type Of Service
+ If unsure, say N.
bool "IP: DSCP statistic"