[nmbscan] fix patch
rebus
rebus at fedoraproject.org
Sun Jan 29 15:07:00 UTC 2012
commit 05ac693240a2654131eba4eff6ec2a12fde3eeb9
Author: Michal Ambroz <rebus at seznam.cz>
Date: Sun Jan 29 16:06:37 2012 +0100
fix patch
nmbscan-1.2.6-arp.patch | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/nmbscan-1.2.6-arp.patch b/nmbscan-1.2.6-arp.patch
new file mode 100644
index 0000000..c93509d
--- /dev/null
+++ b/nmbscan-1.2.6-arp.patch
@@ -0,0 +1,17 @@
+https://bugzilla.redhat.com/show_bug.cgi?id=784772
+Jiri Popelka <jpopelka at redhat.com>
+arp is part of net-tools which has been deprecated for some time and we would
+like to eventually get rid of it.
+use 'ip neigh' (equivalent of 'arp -n' from iproute package) instead of 'arp -n'
+diff -up nmbscan-1.2.6/nmbscan.arp nmbscan-1.2.6/nmbscan
+--- nmbscan-1.2.6/nmbscan.arp 2010-09-08 23:23:40.000000000 +0200
++++ nmbscan-1.2.6/nmbscan 2012-01-26 08:50:35.717190274 +0100
+@@ -384,7 +384,7 @@ EOF
+ function get_mac_by_addr_through_arp
+ {
+ ping -c 1 $1 > /dev/null 2>&1
+- V=$(arp -n | grep "\\([^0-9]\\|^\\)$1\\([^0-9]\\|$\\)" | grep '..:..:..:..:..:..' | sed 's/.*\(..:..:..:..:..:..\).*/\1/'|head -1|tr "[a-f-]" "[A-F:]")
++ V=$(ip neigh show to $1 | grep '..:..:..:..:..:..' | sed 's/.*\(..:..:..:..:..:..\).*/\1/'|head -1|tr "[a-f-]" "[A-F:]")
+ if [ "$V" = "00:00:00:00:00:00" ]; then
+ echo "-"
+ else
More information about the scm-commits
mailing list