[Bug 200710] sysutils/grub2-bhyve: always creates tap0 interface

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Jun 8 13:46:54 UTC 2015


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 at FreeBSD.org
          Reporter: olgeni at FreeBSD.org
             Flags: maintainer-feedback?(kmoore at FreeBSD.org)
          Assignee: kmoore at 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.


More information about the freebsd-ports-bugs mailing list