diff options
-rw-r--r-- | usr.sbin/ppp/iface.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ppp/iface.c b/usr.sbin/ppp/iface.c index ec57e4b..fa6ecdf 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; |