diff options
| author | Brian Somers <brian@FreeBSD.org> | 2001-03-08 10:33:30 +0000 |
|---|---|---|
| committer | Brian Somers <brian@FreeBSD.org> | 2001-03-08 10:33:30 +0000 |
| commit | 2a2877b836333afe248fecdc38cbfe2d02e03617 (patch) | |
| tree | 66f77bc6d731fee0ff8e4c9062d4882681c629a7 /usr.sbin | |
| parent | 717bd36c83089d0dd5063fc143d12b0c31a70f98 (diff) | |
Notes
Diffstat (limited to 'usr.sbin')
| -rw-r--r-- | usr.sbin/ppp/tun.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/ppp/tun.c b/usr.sbin/ppp/tun.c index d391f49951d0..f61f1f2caf55 100644 --- a/usr.sbin/ppp/tun.c +++ b/usr.sbin/ppp/tun.c @@ -43,15 +43,16 @@ #if defined(__OpenBSD__) || defined(__NetBSD__) #include <sys/ioctl.h> #endif +#include <stdio.h> #include <termios.h> #ifdef __NetBSD__ -#include <stdio.h> #include <unistd.h> #endif #include "layer.h" #include "mbuf.h" #include "log.h" +#include "id.h" #include "timer.h" #include "lqr.h" #include "hdlc.h" @@ -105,7 +106,7 @@ tun_configure(struct bundle *bundle) #ifdef __OpenBSD__ info.flags = IFF_UP|IFF_POINTOPOINT; #endif - if (ioctl(bundle->dev.fd, TUNSIFINFO, &info) < 0) + if (ID0ioctl(bundle->dev.fd, TUNSIFINFO, &info) < 0) log_Printf(LogERROR, "tun_configure: ioctl(TUNSIFINFO): %s\n", strerror(errno)); #endif |
