kernel/4955: wi(4), bridge(4) and dhcpd(8)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

kernel/4955: wi(4), bridge(4) and dhcpd(8)

Okan Demirmen
>Number:         4955
>Category:       kernel
>Synopsis:       dhcpd(8) doesn't give out leases on wi(4) if in bridge
>Confidential:   yes
>Severity:       non-critical
>Priority:       low
>Responsible:    bugs
>State:          open
>Quarter:        
>Keywords:      
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Dec 27 03:20:01 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Okan Demirmen
>Release:        3.8 -current
>Organization:
net
>Environment:
        System      : OpenBSD 3.8
        Architecture: OpenBSD.i386
        Machine     : i386
>Description:

it seems that if wi(4) is part of a bridge, not having an ip address,
dhcpd(8) doesn't give out leases to requests on that interface.
staticly assigned devices work just fine, and dhcpd requests to the
other bridged (ip'd) interface (in this case sis2), works.

if wi(4) is by itself, everything is fine.

if wi(4) has the ip in the bridge, where another interface is bridged
with it, stuff flows fine too.

same tests done with em(4) and ral(4) on a thinkpad show that this works
with other chipsets.

>How-To-Repeat:

# ifconfig sis2 192.168.1.1 netmask 255.255.255.0 up
# ifconfig wi0 mediaopt hostap nwid blah up
# ifconfig bridge0 create
# brconfig bridge0 add sis2 add wi0 up
# /usr/sbin/dhcpd -d sis2 (default dhcpd.conf)

try dhclient from another device (i did from both wi(4) and ral(4)
devices) - no leases handed out - no debugging output

if wi0 and sis2 are swapped, ip and bridge configs, stuff works.

>Fix:
unknown - (maybe/probably related to recent wi(4) work)

OpenBSD 3.8-current (GENERIC) #320: Sat Dec 17 10:09:10 MST 2005
    [hidden email]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Geode(TM) Integrated Processor by National Semi ("Geode by NSC" 586-class) 267 MHz
cpu0: FPU,TSC,MSR,CX8,CMOV,MMX
cpu0: TSC disabled
real mem  = 133799936 (130664K)
avail mem = 115445760 (112740K)
using 1658 buffers containing 6791168 bytes (6632K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(00) BIOS, date 20/50/29, BIOS32 rev. 0 @ 0xf7840
pcibios0 at bios0: rev 2.0 @ 0xf0000/0x10000
pcibios0: pcibios_get_intr_routing - function not supported
pcibios0: PCI IRQ Routing information unavailable.
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xc8000/0x9000
ipmi at mainbus0 not configured
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Cyrix GXm PCI" rev 0x00
sis0 at pci0 dev 6 function 0 "NS DP83815 10/100" rev 0x00, DP83816A: irq 10, address 00:00:24:c2:4a:2c
nsphyter0 at sis0 phy 0: DP83815 10/100 PHY, rev. 1
sis1 at pci0 dev 7 function 0 "NS DP83815 10/100" rev 0x00, DP83816A: irq 10, address 00:00:24:c2:4a:2d
nsphyter1 at sis1 phy 0: DP83815 10/100 PHY, rev. 1
sis2 at pci0 dev 8 function 0 "NS DP83815 10/100" rev 0x00, DP83816A: irq 10, address 00:00:24:c2:4a:2e
nsphyter2 at sis2 phy 0: DP83815 10/100 PHY, rev. 1
wi0 at pci0 dev 14 function 0 "Intersil PRISM2.5" rev 0x01: irq 11
wi0: PRISM2.5 ISL3874A(Mini-PCI) (0x8013), Firmware 1.1.0 (primary), 1.4.9 (station), address 00:02:6f:04:8e:ba
gscpcib0 at pci0 dev 18 function 0 "NS SC1100 ISA" rev 0x00
gpio0 at gscpcib0: 64 pins
"NS SC1100 SMI" rev 0x00 at pci0 dev 18 function 1 not configured
pciide0 at pci0 dev 18 function 2 "NS SCx200 IDE" rev 0x01: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <SanDisk SDCFH-512>
wd0: 1-sector PIO, LBA, 488MB, 1000944 sectors
wd1 at pciide0 channel 0 drive 1: <SanDisk SDCFB-512>
wd1: 1-sector PIO, LBA, 488MB, 1000944 sectors
wd0(pciide0:0:0): using PIO mode 4
wd1(pciide0:0:1): using PIO mode 4, DMA mode 2
geodesc0 at pci0 dev 18 function 5 "NS SC1100 X-Bus" rev 0x00: iid 6 revision 3 wdstatus 0
ohci0 at pci0 dev 19 function 0 "Compaq USB OpenHost" rev 0x08: irq 5, version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: Compaq OHCI root hub, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
isa0 at gscpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
sysbeep0 at pcppi0
nsclpcsio0 at isa0 port 0x2e/2: NSC PC87366 rev 9: GPIO VLM TMS
gpio1 at nsclpcsio0: 29 pins
gscsio0 at isa0 port 0x15c/2: SC1100 SIO rev 1:
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom0: console
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
biomask f3e5 netmask ffe5 ttymask ffe7
pctr: no performance counters in CPU
dkcsum: wd0 matches BIOS drive 0x80
dkcsum: wd1 matches BIOS drive 0x81
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302


>Release-Note:
>Audit-Trail:
>Unformatted: