From owner-freebsd-net Tue Jun 1 17:15: 5 1999 Delivered-To: freebsd-net@freebsd.org Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (Postfix) with ESMTP id C1688157D6 for ; Tue, 1 Jun 1999 17:15:01 -0700 (PDT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.9.1/8.9.1) id UAA18887; Tue, 1 Jun 1999 20:14:55 -0400 (EDT) (envelope-from wollman) Date: Tue, 1 Jun 1999 20:14:55 -0400 (EDT) From: Garrett Wollman Message-Id: <199906020014.UAA18887@khavrinen.lcs.mit.edu> To: Mark Summerfield Cc: freebsd-net@FreeBSD.ORG Subject: Interface implementation and ARP under FreeBSD In-Reply-To: <199906012352.JAA15035@mullian.ee.mu.OZ.AU> References: <199906012352.JAA15035@mullian.ee.mu.OZ.AU> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org < 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