Skip to content

A python implementation of send_arp.c from the linux-ha project

Notifications You must be signed in to change notification settings

krig/send_arp.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

send_arp.py

A python implementation of send_arp.c.

Uses no code from the original, depends only on standard python modules.

Run as root, uses raw sockets.

ARP code and license inspired by arprequest by Antoine Millet.

See http://pypi.python.org/pypi/arprequest

Usage

send_arp.py [-i interval(ms)] [-r repeat] [-p pidfile] \
    device src_ip src_mac broadcast netmask
  • Netmask is always ignored.

This code sends three styles of GARP packets per interval to maximize the likelihood of being understood: one GARP request with bcast THA, one GARP request with zero THA, and one standard GARP reply. These different variants are further discussed at the Wireshark wiki.

License

/* This program is free software. It comes without any warranty, to
 * the extent permitted by applicable law. You can redistribute it
 * and/or modify it under the terms of the Do What The Fuck You Want
 * To Public License, Version 2, as published by Sam Hocevar. See
 * http://sam.zoy.org/wtfpl/COPYING for more details. */

About

A python implementation of send_arp.c from the linux-ha project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages