summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/route.h
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1997-12-30 02:45:48 +0000
committerbrian <brian@FreeBSD.org>1997-12-30 02:45:48 +0000
commitf0d05aed36b5eb215274b4d1821f8d0ffd9394ca (patch)
treea201175cd48b221f6e508bd9021dfb5349d7dbec /usr.sbin/ppp/route.h
parentc4bd99c59d52a5c250f50814c56243013fd89b3e (diff)
downloadFreeBSD-src-f0d05aed36b5eb215274b4d1821f8d0ffd9394ca.zip
FreeBSD-src-f0d05aed36b5eb215274b4d1821f8d0ffd9394ca.tar.gz
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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/route.h b/usr.sbin/ppp/route.h
index fddf0f7..9ccf95b 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.7 1997/11/22 03:37:45 brian Exp $
+ * $Id: route.h,v 1.8 1997/12/13 02:37:32 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);
OpenPOWER on IntegriCloud