Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 08 Jun 2015 13:46:54 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 200710] sysutils/grub2-bhyve: always creates tap0 interface
Message-ID:  <bug-200710-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200710

            Bug ID: 200710
           Summary: sysutils/grub2-bhyve: always creates tap0 interface
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: kmoore@FreeBSD.org
          Reporter: olgeni@FreeBSD.org
             Flags: maintainer-feedback?(kmoore@FreeBSD.org)
          Assignee: kmoore@FreeBSD.org

In grub-core/net/drivers/emu/emunet.c there is this check:

#ifdef __FreeBSD__
  fd = open ("/dev/tap0", O_RDWR | O_NONBLOCK);
  if (fd < 0)
    return;
#endif

It will always cause tap0 to be created, even if it will not be used by bhyve
because a different tap interface has been allocated by "ifconfig tap create".

If this check is really necessary then it would be great if a different tap
device could be specified somehow (perhaps with an environment variable to
avoid changing the code too much)

What do you think?

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-200710-13>