From 1994e2d27b6e0d21f8ec9b91c30327a919d1c906 Mon Sep 17 00:00:00 2001 From: phk Date: Sun, 26 May 1996 17:04:48 +0000 Subject: If tunnel is busy we return EBUSY, not ENXIO. --- sys/net/if_tun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/net') 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); -- cgit v1.1