1 Index: arpwatch/arp2ethers
2 diff -u arpwatch/arp2ethers:1.1.1.1 arpwatch/arp2ethers:1.1.1.1.14.1
3 --- arpwatch/arp2ethers:1.1.1.1 Tue Apr 17 13:31:36 2001
4 +++ arpwatch/arp2ethers Tue Apr 17 13:56:38 2001
11 # Convert arp.dat to ethers format
14 # - append "-old", "-old1", etc. as necessary
17 +# 1999-04-12 KELEMEN Peter <fuji@debian.org>
18 +# Use sh(1) instead of csh(1).
20 +# 2000-03-21 Erik Warmelink <erik@selwerd.nl>
21 +# Use next instead of continue in included p.awk.
24 awk 'NF == 4 { print }' | \
26 +# 1999-04-12 KELEMEN Peter <fuji@debian.org>
29 +# Only print the first ethernet address seen
39 egrep -v '\.[0-9][0-9]*$' | \
40 sed -e 's/ .* / /' | \
43 +# 1999-04-12 KELEMEN Peter <fuji@debian.org>
51 + ldecnet = length(sdecnet)
58 + if (sdecnet == substr($1, 1, ldecnet))
63 + for (i = 1; i <= n; ++i) {
64 + if (decnet[h[i]] && sdecnet != substr(e[i], 1, ldecnet))
66 + print e[i] "\t" h[i]
70 +# 1999-04-12 KELEMEN Peter <fuji@debian.org>
73 +# Add -old suffix to ethers file, as required. Assumed sorted input
83 + for (n = 1; seen[h]; ++n)