@@ -61,12 +61,13 @@ static void usage(void)
" ip route save SELECTOR\n"
" ip route restore\n"
" ip route showdump\n"
- " ip route get [ ROUTE_GET_FLAGS ] ADDRESS\n"
+ " ip route get [ ROUTE_GET_FLAGS ] [ to ] ADDRESS\n"
" [ from ADDRESS iif STRING ]\n"
" [ oif STRING ] [ tos TOS ]\n"
" [ mark NUMBER ] [ vrf NAME ]\n"
" [ uid NUMBER ] [ ipproto PROTOCOL ]\n"
" [ sport NUMBER ] [ dport NUMBER ]\n"
+ " [ as ADDRESS ]\n"
" ip route { add | del | change | append | replace } ROUTE\n"
"SELECTOR := [ root PREFIX ] [ match PREFIX ] [ exact PREFIX ]\n"
" [ table TABLE_ID ] [ vrf NAME ] [ proto RTPROTO ]\n"
@@ -112,7 +113,8 @@ static void usage(void)
"FLAVOR := { psp | usp | usd | next-csid }\n"
"IOAM6HDR := trace prealloc type IOAM6_TRACE_TYPE ns IOAM6_NAMESPACE size IOAM6_TRACE_SIZE\n"
"XFRMINFO := if_id IF_ID [ link_dev LINK ]\n"
- "ROUTE_GET_FLAGS := [ fibmatch ]\n");
+ "ROUTE_GET_FLAGS := ROUTE_GET_FLAG [ ROUTE_GET_FLAGS ]\n"
+ "ROUTE_GET_FLAG := [ connected | fibmatch | notify ]\n");
exit(-1);
}
@@ -29,6 +29,7 @@ ip-route \- routing table management
.ti -8
.B ip route get
.I ROUTE_GET_FLAGS
+.B [ to ]
.IR ADDRESS " [ "
.BI from " ADDRESS " iif " STRING"
.RB " ] [ " oif
@@ -44,7 +45,9 @@ ip-route \- routing table management
.B sport
.IR NUMBER " ] [ "
.B dport
-.IR NUMBER " ] "
+.IR NUMBER " ] ["
+.B as
+.IR ADDRESS " ]"
.ti -8
.BR "ip route" " { " add " | " del " | " change " | " append " | "\
@@ -263,9 +266,14 @@ throw " | " unreachable " | " prohibit " | " blackhole " | " nat " ]"
.ti -8
.IR ROUTE_GET_FLAGS " := "
-.BR " [ "
-.BR fibmatch
-.BR " ] "
+.IR ROUTE_GET_FLAG " [ "
+.IR ROUTE_GET_FLAGS " ] "
+
+.ti -8
+.IR ROUTE_GET_FLAG " := "
+.BR "[ "
+.BR connected " | " fibmatch " | " notify
+.BR "]"
.SH DESCRIPTION
.B ip route
The "as", "to", "connected" and "notify" options were missing from the help message in the route get section. Add them to usage help and man page. Note that there isn't an explanation for "as" or "notify" in the man page. Signed-off-by: Yedaya Katsman <yedaya.ka@gmail.com> --- ip/iproute.c | 6 ++++-- man/man8/ip-route.8.in | 16 ++++++++++++---- 2 files changed, 16 insertions(+), 6 deletions(-)