Subject: Re: cdce: arpresolve: can't allocate llinfo on cdce0
To: None <>
From: Pierre Pronchery <>
List: tech-net
Date: 12/15/2006 23:10:37
David Young wrote:
> What does 'route -n get' say?  Send us netstat -rn -f inet.

The following command output may also be interesting:

khorben@syn:~$ sudo arp -s 40:00:01:00:00:01
cannot intuit interface index and type for

From src/usr.sbin/arp/arp.c (NetBSD 3.0.1_PATCH):

301 overwrite:
302         if (sdl->sdl_family != AF_LINK) {
303                 warnx("cannot intuit interface index and type for %s",
304                     host);
305                 return (1);

which is reached if:

286         if (sina->sin_addr.s_addr == sin_m.sin_addr.s_addr) {
287                 if (is_llinfo(sdl, rtm->rtm_flags))
288                         goto overwrite;

which proves it returned non-zero there:

340         switch (sdl->sdl_type) {
341         case IFT_ETHER:
342         case IFT_FDDI:
343         case IFT_ISO88023:
344         case IFT_ISO88024:
345         case IFT_ISO88025:
346         case IFT_ARCNET:
347                 return 1;

Then, the way sdl is filled up is not intuitive at all.

I also noticed this in CVS:

src/sys/dev/usb/if_cdce.c, 3 months, 1 week ago:
Revision 1.10 "remove more vestiges of CCITT, LLC, HDLC, NS, and NSIP."

But I am not familiar enough with the code to tell if it could be
related or not.