1 Index: arpwatch/arp2ethers
2 diff -u arpwatch/arp2ethers:1.1.1.2 arpwatch/arp2ethers:1.1.1.1.14.4
3 --- arpwatch/arp2ethers:1.1.1.2 Tue Aug 10 10:53:34 2004
4 +++ arpwatch/arp2ethers Fri Aug 13 00:34:55 2004
6 # - append "-old", "-old1", etc. as necessary
9 +# 1999-04-12 KELEMEN Peter <fuji@debian.org>
10 +# Use sh(1) instead of csh(1).
12 +# 2000-03-21 Erik Warmelink <erik@selwerd.nl>
13 +# Use next instead of continue in included p.awk.
15 +# 2004-06-26 Javier Fernandez-Sanguino <jfs@debian.org>
16 +# Use a default file or the one provided in the command line
18 -sort +2rn arp.dat | \
19 +FILE=/var/lib/arpwatch/arp.dat
20 +[ -n "$1" ] && FILE=$1
22 + echo "Cannot read file $FILE"
27 awk 'NF == 4 { print }' | \
29 +# 1999-04-12 KELEMEN Peter <fuji@debian.org>
32 +# Only print the first ethernet address seen
42 egrep -v '\.[0-9][0-9]*$' | \
43 sed -e 's/ .* / /' | \
46 +# 1999-04-12 KELEMEN Peter <fuji@debian.org>
54 + ldecnet = length(sdecnet)
61 + if (sdecnet == substr($1, 1, ldecnet))
66 + for (i = 1; i <= n; ++i) {
67 + if (decnet[h[i]] && sdecnet != substr(e[i], 1, ldecnet))
69 + print e[i] "\t" h[i]
73 +# 1999-04-12 KELEMEN Peter <fuji@debian.org>
76 +# Add -old suffix to ethers file, as required. Assumed sorted input
86 + for (n = 1; seen[h]; ++n)