Lines Matching full:route

43  *	@(#)route.c	8.6 (Berkeley) 4/28/95
59 #include <net/route.h>
181 * Size of buffers used to hold command lines from the saved route file as
195 * to route add, change, delete, and get.
353 (void) fprintf(stderr, gettext("route: botched keyword: %s\n"), in usage()
356 (void) fprintf(stderr, gettext("usage: route [ -fnpqv ] " in usage()
380 syntax_error(gettext("route: botched keyword: %s\n"), keyword); in syntax_bad_keyword()
386 syntax_error(gettext("route: argument required following keyword %s\n"), in syntax_arg_missing()
393 (void) fprintf(stderr, "route: "); in quit()
536 "route: show command requires -p\n")); in main()
595 /* This flushes the persistent route file */ in flushroutes()
612 gettext("route: flush: insufficient privileges\n")); in flushroutes()
792 gettext("route: write to routing socket: %s\n"), in delRouteEntry()
795 (void) fprintf(stderr, gettext("route: write to " in delRouteEntry()
1063 * Print the short form summary of a route command.
1241 syntax_error(gettext("route: -host and -net " in args_to_rtcmd()
1249 syntax_error(gettext("route: -host and -net " in args_to_rtcmd()
1387 syntax_error(gettext("route: can't " in args_to_rtcmd()
1394 syntax_error(gettext("route: " in args_to_rtcmd()
1401 syntax_error(gettext("route: " in args_to_rtcmd()
1433 * Needed for compatibility with old route in args_to_rtcmd()
1444 "route %s\n", iflag ? in args_to_rtcmd()
1458 syntax_error(gettext("route: destination required\n")); in args_to_rtcmd()
1463 "route: gateway required for add or delete command\n")); in args_to_rtcmd()
1515 * routes to the persistent route file, everything on in write_to_rtfile()
1519 * yet must be present in the persistent route file. in write_to_rtfile()
1532 quit(gettext("failed to write to route file"), in write_to_rtfile()
1549 * Search the route file for routes matching the supplied route. There are 3
1579 "route: failed to write to temp file"), in search_rtfile()
1588 * route file must be treated as AF_INET by default. in search_rtfile()
1613 (void) printf("persistent: route %s", file_line); in search_rtfile()
1632 * Perform the route operation given in argv on the persistent route file.
1633 * If do_flush is set, the persistent route file is flushed of all routes
1647 "# File generated by route(8) - do not edit.\n"; in save_route()
1651 quit("failed to open route file", errno); in save_route()
1658 quit(gettext("failed to lock route file"), errno); in save_route()
1664 quit(gettext("failed to open route file"), errno); in save_route()
1667 quit(gettext("failed to open route file"), errno); in save_route()
1684 quit(gettext("failed to update route file"), errno); in save_route()
1694 /* Route is already in the file */ in save_route()
1706 gettext("route: change command not supported with -p\n")); in save_route()
1711 /* Route not found */ in save_route()
1717 quit(gettext("failed to update route file"), errno); in save_route()
1750 syntax_error(gettext("route: invalid arguments for show\n")); in show_saved_routes()
1760 quit(gettext("failed to open route file"), errno); in show_saved_routes()
1768 quit(gettext("failed to lock route file"), in show_saved_routes()
1773 quit(gettext("failed to open route file"), errno); in show_saved_routes()
1811 gettext("route: %s: no such interface\n"), in newroute()
1990 /* Let's check to see if this is maybe a local subnet route. */ in inet_makesubnetmask()
2037 * If exit_on_error is true, this function will cause route to exit on error by
2120 "route: bad prefix length: %d\n"), in getaddr()
2134 gettext("route: -netmask not supported for IPv6: " in getaddr()
2154 "route: bad prefix length: %d\n"), in getaddr()
2216 syntax_error(gettext("route: %s: unexpected '/'\n"), str); in in_getaddr()
2303 syntax_error(gettext("route: %s: unexpected '/'\n"), str); in in6_getaddr()
2324 syntax_error(gettext("route: %s: bad address (try " in in6_getaddr()
2328 syntax_error(gettext("route: %s: bad address\n"), s); in in6_getaddr()
2349 syntax_error(gettext("route: %s: unexpected '/'\n"), addr); in in_getprefixlen()
2359 syntax_error(gettext("route: bad prefix length %s\n"), str); in in_getprefixlen()
2363 syntax_error(gettext("route: prefix length %s out of range\n"), in in_getprefixlen()
2520 gettext("route: write to routing socket got only %d for " in rtmsg()
2530 gettext("route: read from routing socket: %s\n"), in rtmsg()
2542 "RTM_ADD: Add Route",
2543 "RTM_DELETE: Delete Route",
2547 "RTM_REDIRECT: Told to use different route",
2552 "RTM_RESOLVE: Route created by cloning",
2649 (void) printf(" route to: %s\n", routename(&req_rt->ri_dst.sa)); in print_getmsg()