Skip to contentSkip to conversation

route: Mark unused routing attributes as such

NET Thomas Graf 1 participant 1 message May 26, 2008

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Also removes an unused policy entry for an attribute which is only used in kernel->user direction.

include/linux/rtnetlink.h +2 -2
Index: net-2.6/include/linux/rtnetlink.h
===================================================================
@@ -267,10 +267,10 @@
 	RTA_PREFSRC,
 	RTA_METRICS,
 	RTA_MULTIPATH,
-	RTA_PROTOINFO,
+	RTA_PROTOINFO, /* no longer used */
 	RTA_FLOW,
 	RTA_CACHEINFO,
-	RTA_SESSION,
+	RTA_SESSION, /* no longer used */
 	RTA_MP_ALGO, /* no longer used */
 	RTA_TABLE,
 	__RTA_MAX
net/ipv4/fib_frontend.c +0 -1
Index: net-2.6/net/ipv4/fib_frontend.c
===================================================================
@@ -506,7 +506,6 @@
 	[RTA_PREFSRC]		= { .type = NLA_U32 },
 	[RTA_METRICS]		= { .type = NLA_NESTED },
 	[RTA_MULTIPATH]		= { .len = sizeof(struct rtnexthop) },
-	[RTA_PROTOINFO]		= { .type = NLA_U32 },
 	[RTA_FLOW]		= { .type = NLA_U32 },
 };