Bug 183335 - ifup-eth does not set wireless options for bridge member interface
Summary: ifup-eth does not set wireless options for bridge member interface
Keywords:
Status: CLOSED DUPLICATE of bug 122801
Alias: None
Product: Fedora
Classification: Fedora
Component: initscripts
Version: 4
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-02-28 11:41 UTC by Radek Hladik
Modified: 2014-03-17 02:58 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-02-28 17:05:32 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Radek Hladik 2006-02-28 11:41:36 UTC
Description of problem:
ifup-eth exits after adding interface into bridge and thus does not check
whether the device is wireless and does not set wireless options.

Version-Release number of selected component (if applicable):
initscripts-8.11.1-1

How reproducible:
Easily

Steps to Reproduce:
1. Prepare these two device configs:
ifcfg-eth_ok:
DEVICE=eth_ok
BOOTPROTO=static
HWADDR=00:0A:EB:A7:E3:A3
IPADDR=0.0.0.0
NETMASK=255.255.255.255
ONBOOT=yes
TYPE=wireless
MODE=master
ESSID=myessid
CHANNEL=13
IWPRIV="mode 3"

ifcfg-eth_bad:
DEVICE=eth_bad
BOOTPROTO=static
HWADDR=00:0A:EB:A7:E3:A3
IPADDR=0.0.0.0
NETMASK=255.255.255.255
ONBOOT=yes
TYPE=wireless
#this is the only difference:
BRIDGE=br_open
MODE=master
ESSID=myessid
CHANNEL=13
IWPRIV="mode 3"

  
Actual results:
ifup eth_ok sets wireless options (this is usual wireless config file)
ifup eth_bad adds interface into bridge but does not set wireless options (mode,
channel,...)

Expected results:

ifup eth_bad should add interface into bridge and set wireless options

Additional info:

I solved the problem with commenting-out command "exit 0" in ifup_eth:
if [ -n "${BRIDGE}" -a -x /usr/sbin/brctl ]; then
      /sbin/ip addr flush dev ${DEVICE} 2>/dev/null
      /sbin/ip link set dev ${DEVICE} up
      /usr/sbin/brctl addif ${BRIDGE} ${DEVICE}
      # Upon adding a device to a bridge,
      # it's necessary to make radvd reload its config
      [ -r /var/run/radvd/radvd.pid ] && kill -HUP `cat /var/run/radvd/radvd.pid`
      #quickfix exit 0
fi

It didn't break anything in my setup but I can guarantee that it wont break
anything in genereal.

Comment 1 Bill Nottingham 2006-02-28 17:05:32 UTC

*** This bug has been marked as a duplicate of 122801 ***


Note You need to log in before you can comment on or make changes to this bug.