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:
Page ot the patch:
Patch attached with submission follows:
Over to maintainer(s).
Unified diff for FreeBSD 7.2 is now available:
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