Date: Tue, 1 Jun 1999 20:14:55 -0400 (EDT) From: Garrett Wollman <wollman@khavrinen.lcs.mit.edu> To: Mark Summerfield <m.summerfield@ee.mu.oz.au> Cc: freebsd-net@FreeBSD.ORG Subject: Interface implementation and ARP under FreeBSD Message-ID: <199906020014.UAA18887@khavrinen.lcs.mit.edu> In-Reply-To: <199906012352.JAA15035@mullian.ee.mu.OZ.AU> References: <199906012352.JAA15035@mullian.ee.mu.OZ.AU>
next in thread | previous in thread | raw e-mail | index | archive | help
<<On Wed, 02 Jun 1999 09:51:55 +1000, Mark Summerfield <m.summerfield@ee.mu.oz.au> said: > I'm developing a driver for an experimental network interface. Currently > my development system is running FreeBSD 2.2.7. That is a really ancient release. You should consider upgrading to a more modern system. > Sending IP packets out of the experimental interface is another matter. > If I configure exp0 with "inet 10.0.0.1 netmask 255.255.255.0" then > "ping 10.0.0.2" my output code calls arpresolve(), and I expect my output > Instead I get the message "arpresolve: can't allocate llinfo". I've > 10/24 10.0.0.1 Uc 0 0 exp0 > 128.250.79.128/25 link#3 UC 0 0 This is actually the one important part of the information you provided. Note the difference between the two lines. This indicates that the correct flavor of route is not being constructed to represent your experimental interface. Both of these lines should look the same. In particular note the erroneous type of the destination address (AF_INET and not AF_LINK) and the absence of the RTF_CLONING flag on the route. This suggests that you are not correctly initializing ARP on your interface; this is done by the arp_ifinit() function which I introduced in rev. 1.9 of netinet/if_ether.c on 1994/12/22 and has been in every release since 2.0.5. See any Ethernet driver for details. -GAWollman -- Garrett A. Wollman | O Siem / We are all family / O Siem / We're all the same wollman@lcs.mit.edu | O Siem / The fires of freedom Opinions not those of| Dance in the burning flame MIT, LCS, CRS, or NSA| - Susan Aglukark and Chad Irschick To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199906020014.UAA18887>