Skip to contentSkip to conversation

rtnetlink: add new value for DHCP added routes

PATCH Applied Stephen Hemminger 2 participants 2 messages Mar 18, 2009 – Mar 20, 2009

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

PATCH 1/1 rtnetlink: add new value for DHCP added routes

To improve manageability, it would be good to be able to disambiguate routes added by administrator from those added by DHCP client. The only necessary kernel change is to add value to rtnetlink include file so iproute2 utility can use it.

include/linux/rtnetlink.h +1 -0
@@ -217,6 +217,7 @@ enum
 #define RTPROT_DNROUTED	13	/* DECnet routing daemon */
 #define RTPROT_XORP	14	/* XORP */
 #define RTPROT_NTK	15	/* Netsukuku */
+#define RTPROT_DHCP	16      /* DHCP client */
 
 /* rtm_scope
 
maintainer Applied
#1 lore raw

From: Stephen Hemminger <[email protected]>
Date: Wed, 18 Mar 2009 12:27:14 -0700

Quoted 6 lines

To improve manageability, it would be good to be able to disambiguate routes added by administrator from those added by DHCP client. The only necessary kernel change is to add value to rtnetlink include file so iproute2 utility can use it.

Applied to net-next-2.6, thanks.