summaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/iface.c
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>1999-10-16 13:28:04 +0000
committerBrian Somers <brian@FreeBSD.org>1999-10-16 13:28:04 +0000
commit53dc037c22baed6d660f5d3877b847a1f77d1681 (patch)
treed8c52fca6789f61b116a819904077a03f8bc9c4f /usr.sbin/ppp/iface.c
parent51449169065b9bd219217f1b5c1c84b02f602847 (diff)
downloadsrc-test2-53dc037c22baed6d660f5d3877b847a1f77d1681.tar.gz
src-test2-53dc037c22baed6d660f5d3877b847a1f77d1681.zip
Notes
Diffstat (limited to 'usr.sbin/ppp/iface.c')
-rw-r--r--usr.sbin/ppp/iface.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ppp/iface.c b/usr.sbin/ppp/iface.c
index ec57e4bbbf80..fa6ecdff6a8d 100644
--- a/usr.sbin/ppp/iface.c
+++ b/usr.sbin/ppp/iface.c
@@ -417,7 +417,7 @@ iface_ChangeFlags(struct iface *iface, int flags, int how)
s = ID0socket(AF_INET, SOCK_DGRAM, 0);
if (s < 0) {
- log_Printf(LogERROR, "iface_ClearFlags: socket: %s\n", strerror(errno));
+ log_Printf(LogERROR, "iface_ChangeFlags: socket: %s\n", strerror(errno));
return 0;
}
@@ -425,7 +425,7 @@ iface_ChangeFlags(struct iface *iface, int flags, int how)
strncpy(ifrq.ifr_name, iface->name, sizeof ifrq.ifr_name - 1);
ifrq.ifr_name[sizeof ifrq.ifr_name - 1] = '\0';
if (ID0ioctl(s, SIOCGIFFLAGS, &ifrq) < 0) {
- log_Printf(LogERROR, "iface_ClearFlags: ioctl(SIOCGIFFLAGS): %s\n",
+ log_Printf(LogERROR, "iface_ChangeFlags: ioctl(SIOCGIFFLAGS): %s\n",
strerror(errno));
close(s);
return 0;
@@ -437,7 +437,7 @@ iface_ChangeFlags(struct iface *iface, int flags, int how)
ifrq.ifr_flags &= ~flags;
if (ID0ioctl(s, SIOCSIFFLAGS, &ifrq) < 0) {
- log_Printf(LogERROR, "iface_ClearFlags: ioctl(SIOCSIFFLAGS): %s\n",
+ log_Printf(LogERROR, "iface_ChangeFlags: ioctl(SIOCSIFFLAGS): %s\n",
strerror(errno));
close(s);
return 0;