Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 105923 - tap interfaces are created after the bridge that uses them
Summary: tap interfaces are created after the bridge that uses them
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: x86 Linux
: High minor
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-13 22:41 UTC by Sergey Anufrienko
Modified: 2005-09-14 02:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Anufrienko 2005-09-13 22:41:34 UTC
In the new-style Gentoo /etc/conf.d/net I have 2 tap interfaces brought up
using your way (tunctl), not openvpn's --mktun. These tap interfaces then must 
be added to 2 bridges (br0 and br1). Both are defined in conf.d/net.

(tap definition goes earlier than bridge definition in the file)

Note: bridges inline depend() function is empty and I have no idea what to 
include there, because both TAPs and bridges are brought up by the same 
initscript 'net', and including it there would create a circular dependency?

I also can't include 'need openvpn' there to allow openvpn do the job, because
it needs net as well :)

So the problem is:
  When the bridges are created at boot time I see errors saying that TAPs don't 
yet exist. As the result, they don't get added to the bridges and it brakes 
some of my network configuration. I want an official workaround for this issue 
and don't like the idea of modifying any code I shouldn't modify :) So can you 
help me, please?

Reproducible: Always
Steps to Reproduce:
1. Define a bridge that uses tap interface in /etc/conf.d/net
2. Define a tap interface in /etc/conf.d/net
3. Reboot

Actual Results:  
tap interface is created when it's too late...

Expected Results:  
1) Checked if the bridge has tap/tun in it
2) Or maybe you can suggest a suitable inline depend() function?

Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r1, 
2.6.12-gentoo-r10 i686)
=================================================================
System uname: 2.6.12-gentoo-r10 i686 Pentium III (Coppermine)
Gentoo Base System version 1.6.13
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[enabled]
dev-lang/python:     2.3.5-r2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X1
1/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distcc distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org 
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X509 acl acpi alsa apache2 apm bash-completion berkdb bzip2 bzlib 
crypt cups curl curlwrappers dbm dvb eds emboss examples extensions fortran ftp 
gd gdbm gpm gstreamer iconv ipv6 libg++ libwww lirc lm_sensors mailwrapper mbox 
md5sum memlimit mime mono mp3 mppe-mppc mysql mysqli ncurses netboot nls nntp 
no-htdocs no-old-linux noamazon nocardbus nomac nptl ogg pam pcntl pcre perl 
php pic pie posix python quotas readline samba session shared sharedmem slang 
snmp sockets socks5 source spell spl sse ssl symlink sysvipc tcpd threads tiff 
unicode usb userlocales v4l vhosts vorbis wifi zlib userland_GNU kernel_linux 
elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Roy Marples (RETIRED) gentoo-dev 2005-09-14 02:06:53 UTC
depend_br0() {
   need net.tun0 net.tun1
}

Like that :)

br0 is the name of the bridge
tun0 and tun1 are the created tun/tap interfaces