It is very inconvenient running 'route' multiple times to load or update numerous routes. Also, this affects system porformance. Also, sometimes it is necessary to ignore errors, appeared on processing of some requests. Fix: Proposed patch adds '-f' switch, which loads set of commands from file. So you can make multiple updates of routing table with single call to route. Each line of file contains single route command. For example: route -f route.rules Also adds '-i' switch to command line. When '-i' is used, all routing commands containing errors will be rejected, but correct commands will be applied. ROUTE shall not stop on the 1st invalid command. It is useful when loading routing rules from file. Since 'route' invokes exit() (or alternatives) on errors, patch adds error status return to all functions instead of terminating process and necessary error handling. Also, added reset of all global veriables, containing current command processing state, to initial values before each line processing. Patch (or it's updates) is located here: http://alter.org.ua/soft/fbsd/route/route-file_ie.patch.gz Page ot the patch: http://alter.org.ua/soft/fbsd/route/ Patch attached with submission follows:
Responsible Changed From-To: freebsd-bugs->freebsd-net Over to maintainer(s).
Hello bug-followup, Unified diff for FreeBSD 7.2 is now available: http://alter.org.ua/soft/fbsd/route/route-file_ie.72.20120614u.patch.gz -- Best regards, Alter mailto:alter@alter.org.ua
For bugs matching the following criteria: Status: In Progress Changed: (is less than) 2014-06-01 Reset to default assignee and clear in-progress tags. Mail being skipped
Keyword: patch or patch-ready – in lieu of summary line prefix: [patch] * bulk change for the keyword * summary lines may be edited manually (not in bulk). Keyword descriptions and search interface: <https://bugs.freebsd.org/bugzilla/describekeywords.cgi>