diff options
-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); |