I don't think that the kernel is the appropriate place to do this. If you
want a "simple" way of doing this, send out a ping to the IP address. The
kernel should do the arp, and cache the entry if the host responds. They
you can check the arp cache as "normal." Doesn't seem like it would cause
any undo traffic on the network...
I don't understand why this is a "kludge." It's the way TCP/IP works,
right?
HTH,
Fred
----- Original Message -----
From: Dan Forsberg <dforsber@niksula.hut.fi>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: <kuznet@ms2.inr.ac.ru>; <linux-kernel@vger.rutgers.edu>
Sent: Tuesday, May 11, 1999 8:26 AM
Subject: Re: Suggestion(?): new ioctl: "resolve hw address and update arp
cache"
> alan> > There could be a new ioctl which returns the arp entry for an ip
address
> alan> > even if it's not in arp cache? If it's not in cache then kernel
could send
> alan> > a arp message and find it out. Or perhaps it could be better to
include it
> alan>
> alan> So could your application ...
>
> Yes sure, but if I send a arp request I need to listen all arp responses
> and the arp cache isn't updated.
>
> Simple solution in the application is to send something to the host but
> that's a kludge ;). And I don't want to send extra packets.
>
> Is it possible to get the mac address for a received ip packet in user
> space (negative offset or something)? That could save my day.
>
> Cheers,
>
> --
> Dan.Forsberg@iki.fi Student & Admin HUT/CS
> http://www.iki.fi/Dan.Forsberg
> finger dforsber@niksula.cs.hut.fi
>
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.rutgers.edu
> Please read the FAQ at http://www.tux.org/lkml/
>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/