summaryrefslogtreecommitdiffstats
path: root/commands/Kconfig
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2017-11-28 12:31:50 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2017-12-15 08:12:30 +0100
commit183515b67a757d51f538af3dc6dcd2c889ddd3af (patch)
treefe84ab34f6f33c23254d2c99433695691ed2ac46 /commands/Kconfig
parentac7b6bcb7ef5abe5d5f6b2a64453080b7994a6eb (diff)
downloadbarebox-183515b67a757d51f538af3dc6dcd2c889ddd3af.tar.gz
barebox-183515b67a757d51f538af3dc6dcd2c889ddd3af.tar.xz
commands: Add ip_route_add command
The ip_route_get command is used to retrieve the network device used to reach a given IP address. This is useful for informational purposes and also for the network boot which wants to get the linux.bootargs parameter of the network device used for nfsroot. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/Kconfig')
-rw-r--r--commands/Kconfig10
1 files changed, 10 insertions, 0 deletions
diff --git a/commands/Kconfig b/commands/Kconfig
index ae2dc4b094..eee4b6aee8 100644
--- a/commands/Kconfig
+++ b/commands/Kconfig
@@ -1200,6 +1200,16 @@ config CMD_TFTP
Options:
-p push to TFTP server
+config CMD_IP_ROUTE_GET
+ tristate
+ prompt "ip-route-get"
+ default y
+ help
+ The ip-route-get command is used to retrieve the network interface
+ which is used to reach the specified IP address. Information can
+ be shown on the command line or alternatively a variable is set to
+ the result.
+
# end Network commands
endmenu