Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)
Delete all ARP entry

        def flush_arp_cache():
	"""
		Delete all ARP entry
	"""
	for ip in open(LINUX_NET_ARP,'r'):
		if check_ipv4(ip):
			os.system("arp -d %s &> /dev/null" % (ip.split()[0]))
        


src/e/t/etherwall-HEAD/Error.py   etherwall(Download)
import signal
from GenWall import chain_stop
from NetMod import flush_arp_cache
 
# Change working directory to the directory of Etherwall
 
	# flushing arp cache
	flush_arp_cache()
 
	# kill service