> After rereading arp(7), it seems that I need to also set the type of
> the hardware device. I therefore added the following lines right after
> the two you suggested above. I still get "device not configured".
> 
>       sin = (struct sockaddr_in *) &areq.arp_ha;
>       sin->sin_family = ARPHRD_ETHER;
> 
> Any other suggestions? 

"device not configured" is ENXIO, which (AFAICT from net/ipv4/arp.c)
indicates that no matching entry was found in the ARP cache.

Your latest version works OK for me with or without the above lines.

> PS- In case it helps, I am using RH 6.1 with kernel 2.2.12-20 compiled
> with SMP.

This is stock 2.2.14, no SMP.

-- 
Glynn Clements <[EMAIL PROTECTED]>

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to