[Bug 276862] vnet doesnt release iface after running openvpn

[email protected]
Newsgroups gmane.os.freebsd.devel.net
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276862

--- Comment #9 from Peter Much <[email protected]> ---
(In reply to Konstantin Belousov from comment #8)

I'm not sure I understand your question, but I think the correct answer is No.

I always destroy my tun devices before terminating the jail, because openvpn
runs in chroot and fails to do so. And I've learned that one has to be 100%
tidy for vnet to work smoothly.


I just looked what Your code precisely does here in my testsuite:

ifconfig tun42 create
     runs tun_clone_create(), clone_create() returns 1.
  -> no problem.

cat /dev/tun43
     runs tunclone(), clone_create() returns 1;
     runs tun_clone_create(), clone_create() returns 0;
     dev_ref() sets dev->si_refcount to 3.
  -> jid is now indestructible.

-- 
You are receiving this mail because:
You are the assignee for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.