Discussion:
Odd behavior
(too old to reply)
Paul Goyette
2010-06-13 15:13:42 UTC
Permalink
Hmmm, while testing my pending changes to the axe(4) driver, I saw some
strange behavior...

When I insert the device, I get all the proper usb attachments, and the
interface is created.

However, when I use ifconfig to give the interface an IPv4 address, it
creates the subnet route in the routing table, but does NOT create the
local route! I am therefore unable to communicate with other devices on
the network, since no incoming packets get received.

If I then ping my own address on this device, the local address suddenly
appears in the routing table, and then everything else just works as
expected!

I'm pretty sure I didn't touch anything in the driver in this area, so
if anyone has a clue on what I'm missing, I'd really appreciate it!

(Please cc me on replies, as I am not subscribed to tech-kern list. It
isn't my normal area of expertise. I'm playing with this driver just to
get my new device working!)


-------------------------------------------------------------------------
| Paul Goyette | PGP Key fingerprint: | E-mail addresses: |
| Customer Service | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer | | pgoyette at netbsd.org |
-------------------------------------------------------------------------

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Paul Goyette
2010-06-13 15:49:18 UTC
Permalink
Post by Paul Goyette
However, when I use ifconfig to give the interface an IPv4 address, it
creates the subnet route in the routing table, but does NOT create the
local route! I am therefore unable to communicate with other devices on
the network, since no incoming packets get received.
If I then ping my own address on this device, the local address suddenly
appears in the routing table, and then everything else just works as
expected!
I'm not sure what you mean by local route, but is it possible that you don't
have lo0 configured (with 127.0.0.1 & up) when you try this?
IIRC there are some funny effects to be expected then...
Yep, the lo0 entry is up and running.

I just ran through things again, and I think I must have done something
wrong before, because everything is now working correctly. I guess I
didn't get enough sleep last night!


-------------------------------------------------------------------------
| Paul Goyette | PGP Key fingerprint: | E-mail addresses: |
| Customer Service | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer | | pgoyette at netbsd.org |
-------------------------------------------------------------------------

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Hubert Feyrer
2010-06-13 15:18:43 UTC
Permalink
Post by Paul Goyette
However, when I use ifconfig to give the interface an IPv4 address, it
creates the subnet route in the routing table, but does NOT create the local
route! I am therefore unable to communicate with other devices on the
network, since no incoming packets get received.
If I then ping my own address on this device, the local address suddenly
appears in the routing table, and then everything else just works as
expected!
I'm not sure what you mean by local route, but is it possible that you
don't have lo0 configured (with 127.0.0.1 & up) when you try this?
IIRC there are some funny effects to be expected then...


- Hubert

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Loading...