On 3/28/07, Rafael Morales <[EMAIL PROTECTED]> wrote:
I have OpenBSD 4.0, and I have troubles trying to
connect my wireless with my AP.
I have in my /etc/hostname.wi0
dhcp NONE NONE NONE nwkey <my key>
But when I restart the net I see this message:
sudo sh /etc/netstart
ifconfig: strings too long
DHCPDISCOVER on wi0 to 255.255.255.255 port 67
interval 1
DHCPDISCOVER on wi0 to 255.255.255.255 port 67
interval 2
DHCPDISCOVER on wi0 to 255.255.255.255 port 67
interval 4
DHCPDISCOVER on wi0 to 255.255.255.255 port 67
interval 9
DHCPDISCOVER on wi0 to 255.255.255.255 port 67
interval 10
DHCPDISCOVER on wi0 to 255.255.255.255 port 67
interval 10
DHCPDISCOVER on wi0 to 255.255.255.255 port 67
interval 10
DHCPDISCOVER on wi0 to 255.255.255.255 port 67
interval 11
DHCPDISCOVER on wi0 to 255.255.255.255 port 67
interval 4
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
Your symptons are pretty obviously the result of the key being set
wrong, as you guessed. I don't know what it might be. Try reading the
/etc/netstart script. By pen and paper, trace the values of variables.
Look for the calls to ifconfig and what strings it might be passing.
Try typing in those command lines directly. See if you can reproduce
the problem.
You could also grep ifconfig's source code for "strings too long" and
look for what condition that indicates.
If you find a bug in netstart then tell about it!
-Nick