* Stephan A. Rickauer <[EMAIL PROTECTED]> [2008-03-24 16:15]:
> Does anyone happen to know a tool that sends out gratuitous arp from
> userland on openbsd?
>
> P.S. I know there is CARP, but I need to send out o;?gratuitous arp
> anyway ;)
sth like this
MAC="00:11:22:33:44:55"
DNET="dnet"
for IP in `ifconfig $interface | grep 'inet ' | \
sed 's/ *inet \([0-9]*\.[0-9]*\.[0-9]*\.[0-9]*\) netmask.*/\1/'`; do
${DNET} arp op rep sha ${MAC} spa ${IP} tpa ${IP} | \
${DNET} eth type arp dst ff:ff:ff:ff:ff:ff | \
${DNET} send $interface
done;
--
Henning Brauer, [EMAIL PROTECTED], [EMAIL PROTECTED]
BS Web Services, http://bsws.de
Full-Service ISP - Secure Hosting, Mail and DNS Services
Dedicated Servers, Rootservers, Application Hosting - Hamburg & Amsterdam