summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp
diff options
context:
space:
mode:
authoramurai <amurai@FreeBSD.org>1995-07-08 06:08:52 +0000
committeramurai <amurai@FreeBSD.org>1995-07-08 06:08:52 +0000
commitced7ace3735ea07f1c2bf344cdf6d06171a67441 (patch)
tree44be7a2d970aa68e7b7205ab3ea8476a519c5bdb /usr.sbin/ppp
parent9ab5bb8cc4a2c4f1049de7c15f2e07d2f0481dc9 (diff)
downloadFreeBSD-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')
-rw-r--r--usr.sbin/ppp/route.c6
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);
OpenPOWER on IntegriCloud