svn commit: trunk/busybox/networking

aldot at busybox.net aldot at busybox.net
Tue Apr 18 08:11:38 UTC 2006


Author: aldot
Date: 2006-04-18 01:11:37 -0700 (Tue, 18 Apr 2006)
New Revision: 14906

Log:
- simplify config options of the ip applet.


Modified:
   trunk/busybox/networking/Config.in


Changeset:
Modified: trunk/busybox/networking/Config.in
===================================================================
--- trunk/busybox/networking/Config.in	2006-04-18 01:53:41 UTC (rev 14905)
+++ trunk/busybox/networking/Config.in	2006-04-18 08:11:37 UTC (rev 14906)
@@ -337,100 +337,82 @@
 	  utility.  You generally don't need "ip" to use busybox with
 	  TCP/IP.
 
-if CONFIG_IP && CONFIG_IPADDR
-	config CONFIG_FEATURE_IP_ADDRESS
-		default y
-	comment "  address (forced enabled for ipaddr)"
-endif
-if ! (CONFIG_IP && CONFIG_IPADDR)
-	config CONFIG_FEATURE_IP_ADDRESS
-		bool "  address"
-		default y
-		depends on CONFIG_IP
-		help
-		  Address manipulation support for the "ip" applet.
-endif
+config CONFIG_FEATURE_IP_ADDRESS
+	bool "ip address"
+	default y
+	depends on CONFIG_IP
+	help
+	  Address manipulation support for the "ip" applet.
 
-if CONFIG_IP && CONFIG_IPLINK
-	config CONFIG_FEATURE_IP_LINK
-		default y
-	comment "  link (forced enabled for iplink)"
-endif
-if !(CONFIG_IP && CONFIG_IPLINK)
-	config CONFIG_FEATURE_IP_LINK
-		bool "  link"
-		default y
-		depends on CONFIG_IP
-		help
-		  Configure network devices with "ip".
-endif
-
-if CONFIG_IP && CONFIG_IPROUTE
-	config CONFIG_FEATURE_IP_ROUTE
-		default y
-	comment "  route (forced enabled for iproute)"
-endif
-if !(CONFIG_IP && CONFIG_IPROUTE)
-	config CONFIG_FEATURE_IP_ROUTE
-		bool "  route"
-		default y
-		depends on CONFIG_IP
-		help
-		  Add support for routing table management to "ip".
-endif
-
-if CONFIG_IP && CONFIG_IPTUNNEL
-	config CONFIG_FEATURE_IP_TUNNEL
-		default y
-	comment "  tunnel (forced enabled for iptunnel)"
-endif
-if !(CONFIG_IP && CONFIG_IPTUNNEL)
-	config CONFIG_FEATURE_IP_TUNNEL
-		bool "  tunnel"
-		default n
-		depends on CONFIG_IP
-		help
-		  Add support for tunneling commands to "ip".
-endif
-
-config CONFIG_IPCALC
-	bool "ipcalc"
-	default n
+config CONFIG_FEATURE_IP_LINK
+	bool "ip link"
+	default y
+	depends on CONFIG_IP
 	help
-	  ipcalc takes an IP address and netmask and calculates the
-	  resulting broadcast, network, and host range.
+	  Configure network devices with "ip".
 
-config CONFIG_FEATURE_IPCALC_FANCY
-	bool "  Fancy IPCALC, more options, adds 1 kbyte"
+config CONFIG_FEATURE_IP_ROUTE
+	bool "ip route"
 	default y
-	depends on CONFIG_IPCALC
+	depends on CONFIG_IP
 	help
-	  Adds the options hostname, prefix and silent to the output of "ipcalc".
+	  Add support for routing table management to "ip".
 
-config CONFIG_IPADDR
-	bool "ipaddr"
+config CONFIG_FEATURE_IP_TUNNEL
+	bool "ip tunnel"
 	default n
+	depends on CONFIG_IP
 	help
-	  Equivalent to selecting address support to "ip", above.
+	  Add support for tunneling commands to "ip".
 
-config CONFIG_IPLINK
-	bool "iplink"
+config CONFIG_FEATURE_IP_SHORT_FORMS
+	bool "Support short forms of ip commands."
 	default n
+	depends on CONFIG_IP
 	help
-	  Equivalent to selecting link support to "ip", above.
+	  Also support short-form of ip <OBJECT> commands:
+	  ip addr   -> ipaddr
+	  ip link   -> iplink
+	  ip route  -> iproute
+	  ip tunnel -> iptunnel
 
+	  Say N unless you desparately need the short form of the ip
+	  object commands.
+
+config CONFIG_IPADDR
+	bool
+	default y
+	depends on CONFIG_FEATURE_IP_SHORT_FORMS && CONFIG_FEATURE_IP_ADDRESS
+
+config CONFIG_IPLINK
+	bool
+	default y
+	depends on CONFIG_FEATURE_IP_SHORT_FORMS && CONFIG_FEATURE_IP_LINK
+
 config CONFIG_IPROUTE
-	bool "iproute"
-	default n
-	help
-	  Equivalent to selecting route support to "ip", above.
+	bool
+	default y
+	depends on CONFIG_FEATURE_IP_SHORT_FORMS && CONFIG_FEATURE_IP_ROUTE
 
 config CONFIG_IPTUNNEL
-	bool "iptunnel"
+	bool
+	default y
+	depends on CONFIG_FEATURE_IP_SHORT_FORMS && CONFIG_FEATURE_IP_TUNNEL
+
+config CONFIG_IPCALC
+	bool "ipcalc"
 	default n
 	help
-	  Equivalent to selecting tunnel support to "ip", above.
+	  ipcalc takes an IP address and netmask and calculates the
+	  resulting broadcast, network, and host range.
 
+config CONFIG_FEATURE_IPCALC_FANCY
+	bool "  Fancy IPCALC, more options, adds 1 kbyte"
+	default y
+	depends on CONFIG_IPCALC
+	help
+	  Adds the options hostname, prefix and silent to the output of "ipcalc".
+
 config CONFIG_NAMEIF
 	bool "nameif"
 	default n




More information about the busybox-cvs mailing list