diff options
author | phk <phk@FreeBSD.org> | 1996-05-26 17:04:48 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1996-05-26 17:04:48 +0000 |
commit | 1994e2d27b6e0d21f8ec9b91c30327a919d1c906 (patch) | |
tree | 2a6239e2bf87830239d2b55b725a4d2eb5ef7eae /sys | |
parent | 7aa7146d551879f646110cdb8ad3eb035d2852a9 (diff) | |
download | FreeBSD-src-1994e2d27b6e0d21f8ec9b91c30327a919d1c906.zip FreeBSD-src-1994e2d27b6e0d21f8ec9b91c30327a919d1c906.tar.gz |
If tunnel is busy we return EBUSY, not ENXIO.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/if_tun.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c index 15fb957..28df787 100644 --- a/sys/net/if_tun.c +++ b/sys/net/if_tun.c @@ -158,7 +158,7 @@ tunopen(dev, flag, mode, p) return (ENXIO); tp = &tunctl[unit]; if (tp->tun_flags & TUN_OPEN) - return ENXIO; + return EBUSY ifp = &tp->tun_if; tp->tun_flags |= TUN_OPEN; TUNDEBUG("%s%d: open\n", ifp->if_name, ifp->if_unit); |