Bug 23017 - [PATCH] for arpwatch to log PID to syslog
Summary: [PATCH] for arpwatch to log PID to syslog
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: freebsd-ports (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-11-22 08:00 UTC by Andre Albsmeier
Modified: 2000-11-25 05:53 UTC (History)
0 users

See Also:


Attachments
file.diff (259 bytes, patch)
2000-11-22 08:00 UTC, Andre Albsmeier
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andre Albsmeier 2000-11-22 08:00:01 UTC
When arpwatch logs to syslog a typical entry can look like this:

arpwatch: bogon 179.23.184.1 0:e0:a3:22:0:a0

When multiple instances of arpwatch are running on the same machine
but on different ethernet cards, it is difficult to find out which
arpwatch process has logged to syslog.

Fix: A small patch makes the syslog message contain the pid:
How-To-Repeat: 
I, for example, have a machine with three fxp cards. I am running:

USER     PID  PPID   VSZ  RSS  TT  STARTED      TIME COMMAND
root     944     1  2372 1968  ??   6:49AM   0:00.23 arpwatch -i fxp2 -f arp-fxp2.dat
root     936     1  2372 1968  ??   6:49AM   0:00.23 arpwatch -i fxp1 -f arp-fxp1.dat
root     929     1  2368 1964  ??   6:49AM   0:00.23 arpwatch -i fxp0 -f arp-fxp0.dat

With the above syslog entry, it is very hard to determine on which of
the three wires the bogon appeared and where I have to look for the
user rip his head off :-)
Comment 1 Doug Barton freebsd_committer freebsd_triage 2000-11-25 05:52:28 UTC
State Changed
From-To: open->closed


It's more appropriate to submit a patch like this to the 
port's author.