diff options
author | brian <brian@cvs.openbsd.org> | 1997-12-30 02:45:08 +0000 |
---|---|---|
committer | brian <brian@cvs.openbsd.org> | 1997-12-30 02:45:08 +0000 |
commit | 2ef1dd7773d62204dd537b55c3b54c4cea9c9286 (patch) | |
tree | a18177fbfe998614449f75f629103c0848dc1fd3 /usr.sbin/ppp/route.h | |
parent | d2e4c03c9afa5edab347e7b8547f8394e284bab4 (diff) |
Allow "add! dst mask gw" (note the ``!'') to do an
RTM_CHANGE if the RTM_ADD fails with an EEXIST.
Allow "delete! dst" (note the ``!'') to silently
fail if the RTM_DELETE fails with an ESRCH.
Also, make the ESRCH and EEXIST error conditions
more understandable to the casual observer.
Diffstat (limited to 'usr.sbin/ppp/route.h')
-rw-r--r-- | usr.sbin/ppp/route.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/route.h b/usr.sbin/ppp/route.h index 407ec1307ee..7d12f2ff428 100644 --- a/usr.sbin/ppp/route.h +++ b/usr.sbin/ppp/route.h @@ -17,12 +17,12 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: route.h,v 1.2 1997/12/15 22:44:58 brian Exp $ + * $Id: route.h,v 1.3 1997/12/30 02:45:07 brian Exp $ * */ extern int GetIfIndex(char *); extern int ShowRoute(struct cmdargs const *); -extern void OsSetRoute(int, struct in_addr, struct in_addr, struct in_addr); +extern void OsSetRoute(int, struct in_addr, struct in_addr, struct in_addr,int); extern void DeleteIfRoutes(int); extern struct in_addr ChooseHisAddr(const struct in_addr); |