Bug 54575 - arpwatch.sh doesn't support multiple interfaces well
Summary: arpwatch.sh doesn't support multiple interfaces well
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Kirill Ponomarev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-17 12:30 UTC by Gleb Smirnoff
Modified: 2003-11-03 11:17 UTC (History)
0 users

See Also:


Attachments
file.diff (422 bytes, patch)
2003-07-17 12:30 UTC, Gleb Smirnoff
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gleb Smirnoff 2003-07-17 12:30:19 UTC
	  arpwatch.sh is not part of arpwatch 2.1.a11, but a part of its
	FreeBSD port. arpwatch.sh is installed into /usr/local/etc/rc.d
	and starts arpwatch at boot time.
	  It runs as many arpwatches as specified by variable
	${arpwatch_interfaces} in rc.conf. 
	  The problem is that all this arpwatch processes try to use 
	the same /usr/local/arpwatch/arp.dat. At shutdown time there 
	exists a race condition between them: each arpwatch process dumps
	his data into arp.dat, and there remains table of the last
	exited one.

Fix: Let each arpwatch use his own arp.${iface}.dat:
How-To-Repeat: 	Set ${arpwatch_interfaces} to a list of interfaces, more than 1.
	Run arpwatch, look at your mail, write down 'new stations'. 
	killall arpwatches, start arpwatch.sh again. Look at your mail.
	Some 'new stations' will appear again.
Comment 1 Tilman Keskinoz freebsd_committer freebsd_triage 2003-07-18 13:28:48 UTC
Responsible Changed
From-To: freebsd-ports-bugs->brian

over to maintainer
Comment 2 Kris Kennaway freebsd_committer freebsd_triage 2003-11-03 00:59:41 UTC
Responsible Changed
From-To: brian->freebsd-ports-bugs

Port maintainer was reset
Comment 3 Kirill Ponomarev freebsd_committer freebsd_triage 2003-11-03 06:51:42 UTC
Responsible Changed
From-To: freebsd-ports-bugs->krion

I'll handle it.
Comment 4 Kirill Ponomarev freebsd_committer freebsd_triage 2003-11-03 11:16:55 UTC
State Changed
From-To: open->closed

Committed, thanks!