summaryrefslogtreecommitdiffstats
path: root/commands/ip-route-get.c
Commit message (Collapse)AuthorAgeFilesLines
* commands/*: Replace license and copyright boilerplate by SPDX identfiersUwe Kleine-König2020-04-271-10/+1
| | | | | | | | | | | | | While at it also drop references to the non-existing CREDITS file and do some small rearrangements for some uniform formatting. (SPDX-License-Identifier first, then copyright texts and then an empty line.) The advantage is that these specifiers are machine-parseable which helps license conformance. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: ip_route_get: resolv hostnamesSascha Hauer2019-01-041-1/+1
| | | | | | | When global.net.server is a hostname instead of an IP address we have to resolv it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: ip_route_get: Hook help text to commandSascha Hauer2019-01-041-0/+1
| | | | | | | The help text is present but not hooked into the command structure. Fix this. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: ip_route_get: Fix error messageSascha Hauer2019-01-041-2/+2
| | | | | | We do getopt(), so the next argument is in argv[optind], not in argv[1]. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* commands: Add ip_route_add commandSascha Hauer2017-12-151-0/+96
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>