diff options
author | brian <brian@FreeBSD.org> | 1999-10-19 15:21:09 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1999-10-19 15:21:09 +0000 |
commit | 39e862702cb354c8fc1e7409caac87dbe04262b6 (patch) | |
tree | ba173d916e21466c26e400811308058ee15e4c7c /usr.sbin/ppp/iface.c | |
parent | caa1d925297044819d7dd7fd4dbc629042fc4d0f (diff) | |
download | FreeBSD-src-39e862702cb354c8fc1e7409caac87dbe04262b6.zip FreeBSD-src-39e862702cb354c8fc1e7409caac87dbe04262b6.tar.gz |
Add the -unit command line switch for specifying the tun device.
Warn about -alias being depricated (but still allow it).
Don't moan twice about failing to open any tun device.
Fix a diagnostic and add the -quiet switch to the usage message.
Diffstat (limited to 'usr.sbin/ppp/iface.c')
-rw-r--r-- | usr.sbin/ppp/iface.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/ppp/iface.c b/usr.sbin/ppp/iface.c index fa6ecdf..ebe6803 100644 --- a/usr.sbin/ppp/iface.c +++ b/usr.sbin/ppp/iface.c @@ -118,18 +118,20 @@ iface_Create(const char *name) mib[5] = 0; if (sysctl(mib, 6, NULL, &needed, NULL, 0) < 0) { - fprintf(stderr, "clean: sysctl: estimate: %s\n", + fprintf(stderr, "iface_Create: sysctl: estimate: %s\n", strerror(errno)); close(s); return NULL; } if ((buf = (char *)malloc(needed)) == NULL) { + fprintf(stderr, "iface_Create: malloc failed: %s\n", strerror(errno)); close(s); return NULL; } if (sysctl(mib, 6, buf, &needed, NULL, 0) < 0) { + fprintf(stderr, "iface_Create: sysctl: %s\n", strerror(errno)); free(buf); close(s); return NULL; |