Subject: dhclient fails to install bpf
To: None <current-users@netbsd.org>
From: Sverre Froyen <sverre@viewmark.com>
List: current-users
Date: 12/14/2005 11:25:37
Hi,

Anyone else having trouble with the bpf device.  With a kernel from yesterday, 
dhclient fails with the error:

	Can't install packet filter program: Invalid argument

A ktrace gives:

 290      1 dhclient NAMI  "/dev/bpf"
   290      1 dhclient RET   open 6
   290      1 dhclient CALL  ioctl(6,BIOCSBLEN,0xbfbfe06c)
   290      1 dhclient GIO   fd 6 wrote 4 bytes
       "\0\M^@\0\0"
   290      1 dhclient GIO   fd 6 read 4 bytes
       "\0\M^@\0\0"
   290      1 dhclient RET   ioctl 0
   290      1 dhclient CALL  ioctl(6,BIOCSETIF,0x809c240)
   290      1 dhclient GIO   fd 6 wrote 32 bytes
       "iwi0\0\0\0\0\0\0\0\0\0\0\0\0\^P\^B\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
   290      1 dhclient RET   ioctl 0
   290      1 dhclient CALL  ioctl(6,BIOCVERSION,0xbfbfe0a4)
   290      1 dhclient GIO   fd 6 read 4 bytes
       "\^A\0\^A\0"
   290      1 dhclient RET   ioctl 0
   290      1 dhclient CALL  ioctl(6,BIOCIMMEDIATE,0xbfbfe0a0)
   290      1 dhclient GIO   fd 6 wrote 4 bytes
       "\^A\0\0\0"
   290      1 dhclient RET   ioctl 0
   290      1 dhclient CALL  ioctl(6,BIOCGBLEN,0xbfbfe09c)
   290      1 dhclient GIO   fd 6 read 4 bytes
       "\0\M^@\0\0"
   290      1 dhclient RET   ioctl 0
   290      1 dhclient CALL  break(0x80dc000)
   290      1 dhclient RET   break 0
   290      1 dhclient CALL  ioctl(6,BIOCGDLT,0xbfbfe098)
   290      1 dhclient GIO   fd 6 read 4 bytes
       "\^A\0\0\0"
   290      1 dhclient RET   ioctl 0
   290      1 dhclient CALL  ioctl(6,BIOCSETF,0xbfbfe090)
   290      1 dhclient GIO   fd 6 wrote 8 bytes
       "\v\0\0\0@\r     \b"
   290      1 dhclient RET   ioctl -1 errno 22 Invalid argument

System info:

NetBSD abbor.viewmark.com 3.99.14 NetBSD 3.99.14 (ABBOR) #46: Wed Dec 14 
08:09:37 MST 2005

GENERIC_LAPTOP + ACPI +TMPFS

Another kernel from a couple of days ago worked fine.

Sverre