summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/arp.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1997-08-31 22:59:49 +0000
committerbrian <brian@FreeBSD.org>1997-08-31 22:59:49 +0000
commitc9a9461a21671bac4629e498a3208808d4f14757 (patch)
tree3fc9c8ab35ac1452e5cf005f4ca3bc9e21650abc /usr.sbin/ppp/arp.c
parentb217a31a96f18aecebfa079789e822952e9da3a8 (diff)
downloadFreeBSD-src-c9a9461a21671bac4629e498a3208808d4f14757.zip
FreeBSD-src-c9a9461a21671bac4629e498a3208808d4f14757.tar.gz
Cosmetic: Make LogPrintf() calls consistent.
Diffstat (limited to 'usr.sbin/ppp/arp.c')
-rw-r--r--usr.sbin/ppp/arp.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/ppp/arp.c b/usr.sbin/ppp/arp.c
index ded4d98..03b242e 100644
--- a/usr.sbin/ppp/arp.c
+++ b/usr.sbin/ppp/arp.c
@@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: arp.c,v 1.12 1997/06/09 03:27:11 brian Exp $
+ * $Id: arp.c,v 1.13 1997/08/25 00:29:03 brian Exp $
*
*/
@@ -94,8 +94,7 @@ sifproxyarp(int unit, u_long hisaddr)
*/
memset(&arpmsg, 0, sizeof(arpmsg));
if (!get_ether_addr(unit, hisaddr, &arpmsg.hwa)) {
- LogPrintf(LogERROR, "Cannot determine ethernet address"
- " for proxy ARP\n");
+ LogPrintf(LogERROR, "Cannot determine ethernet address for proxy ARP\n");
return 0;
}
if ((routes = socket(PF_ROUTE, SOCK_RAW, AF_INET)) < 0) {
@@ -186,7 +185,7 @@ sifproxyarp(int unit, u_long hisaddr)
((struct sockaddr_in *) & arpreq.arp_pa)->sin_addr.s_addr = hisaddr;
arpreq.arp_flags = ATF_PERM | ATF_PUBL;
if (ioctl(unit, SIOCSARP, (caddr_t) & arpreq) < 0) {
- LogPrintf(LogERROR, "sifproxyarp: ioctl(SIOCSARP): \n");
+ LogPrintf(LogERROR, "sifproxyarp: ioctl(SIOCSARP): %s\n", strerror(errno));
return 0;
}
return 1;
@@ -204,7 +203,7 @@ cifproxyarp(int unit, u_long hisaddr)
SET_SA_FAMILY(arpreq.arp_pa, AF_INET);
((struct sockaddr_in *) & arpreq.arp_pa)->sin_addr.s_addr = hisaddr;
if (ioctl(unit, SIOCDARP, (caddr_t) & arpreq) < 0) {
- LogPrintf(LogERROR, "cifproxyarp: ioctl(SIOCDARP): \n");
+ LogPrintf(LogERROR, "cifproxyarp: ioctl(SIOCDARP): %s\n", strerror(errno));
return 0;
}
return 1;
@@ -232,7 +231,8 @@ get_ether_addr(int s, u_long ipaddr, struct sockaddr_dl * hwaddr)
ifc.ifc_len = sizeof(ifs);
ifc.ifc_req = ifs;
if (ioctl(s, SIOCGIFCONF, &ifc) < 0) {
- LogPrintf(LogERROR, "get_ether_addr: ioctl(SIOCGIFCONF): \n");
+ LogPrintf(LogERROR, "get_ether_addr: ioctl(SIOCGIFCONF): %s\n",
+ strerror(errno));
return 0;
}
OpenPOWER on IntegriCloud