diff options
author | amurai <amurai@FreeBSD.org> | 1995-07-08 06:08:52 +0000 |
---|---|---|
committer | amurai <amurai@FreeBSD.org> | 1995-07-08 06:08:52 +0000 |
commit | ced7ace3735ea07f1c2bf344cdf6d06171a67441 (patch) | |
tree | 44be7a2d970aa68e7b7205ab3ea8476a519c5bdb /usr.sbin/ppp/route.c | |
parent | 9ab5bb8cc4a2c4f1049de7c15f2e07d2f0481dc9 (diff) | |
download | FreeBSD-src-ced7ace3735ea07f1c2bf344cdf6d06171a67441.zip FreeBSD-src-ced7ace3735ea07f1c2bf344cdf6d06171a67441.tar.gz |
Clean up mesage log facility stuff accordng to Joradn's question.
Reviewed by: amurai@spec.co.jp
Diffstat (limited to 'usr.sbin/ppp/route.c')
-rw-r--r-- | usr.sbin/ppp/route.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/ppp/route.c b/usr.sbin/ppp/route.c index 5d82670..84f3d62 100644 --- a/usr.sbin/ppp/route.c +++ b/usr.sbin/ppp/route.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: route.c,v 1.2 1995/02/26 12:17:56 amurai Exp $ + * $Id: route.c,v 1.3 1995/05/30 03:50:56 rgrimes Exp $ * */ #include <sys/types.h> @@ -40,6 +40,7 @@ #include <stdio.h> #include <string.h> #include <unistd.h> +#include "log.h" static int IfIndex; @@ -108,7 +109,8 @@ struct in_addr mask; rtmes.m_rtm.rtm_msglen = nb; wb = write(s, &rtmes, nb); if (wb < 0) { - perror("write"); + LogPrintf(LOG_TCPIP, "Already set route addr dst=%x, gateway=%x\n" + ,dst.s_addr, gateway.s_addr); } #ifdef DEBUG logprintf("wrote %d: dst = %x, gateway = %x\n", nb, dst.s_addr, gateway.s_addr); |