about summary refs log tree commit diff
path: root/Completion/Unix/Command/_arping
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2007-01-29 18:44:58 +0000
committerClint Adams <clint@users.sourceforge.net>2007-01-29 18:44:58 +0000
commit2f6267dc31c4e0bbb8680b5a440f47517f8f75c2 (patch)
tree74296d6ba7ceeb942531758abba3aae57f35ef23 /Completion/Unix/Command/_arping
parent2b948e6c375a540129883272f9c4e118ada8ab1e (diff)
downloadzsh-2f6267dc31c4e0bbb8680b5a440f47517f8f75c2.tar.gz
zsh-2f6267dc31c4e0bbb8680b5a440f47517f8f75c2.tar.xz
zsh-2f6267dc31c4e0bbb8680b5a440f47517f8f75c2.zip
23140: handle syntax for iputils variant as well as whichever arping for which we had already been completing.
Diffstat (limited to 'Completion/Unix/Command/_arping')
-rw-r--r--Completion/Unix/Command/_arping24
1 files changed, 22 insertions, 2 deletions
diff --git a/Completion/Unix/Command/_arping b/Completion/Unix/Command/_arping
index 382ce247e..5fc65a27a 100644
--- a/Completion/Unix/Command/_arping
+++ b/Completion/Unix/Command/_arping
@@ -1,5 +1,23 @@
 #compdef arping
 
+if _pick_variant iputils=iputils unix -V; then
+
+_arguments -s \
+  '-f[quit on first reply]' \
+  '-q[be quiet]' \
+  '-b[keep broadcasting, do not go unicast]' \
+  '-D[duplicate address detection mode]'\
+  '-U[Unsolicited ARP mode, update your neighbours]' \
+  '-A[ARP answer mode, update your neighbours]' \
+  '-V[print version and exit]' \
+  '-c[how many packets to send]:count' \
+  '-w[how long to wait for a reply]:timeout' \
+  '-I[interface]:ethernet interface:_net_interfaces' \
+  '-s[source ip address]:source IP address:_hosts' \
+  ':destination:_hosts'
+
+else
+
 _arguments -s \
   '(-)-h[display help information]' \
   '-q[only display error messages]' \
@@ -17,6 +35,8 @@ _arguments -s \
   '-s[set source MAC address]:source MAC address' \
   '-t[set target MAC address]:target MAC address' \
   '-c[send this many requests]:count' \
-  '-i[interface]:interface' \
+  '-i[interface]:interface:_net_interfaces' \
   '-A[only count addresses matching requested address]' \
-  '(-B):address:_hosts' \
+  '(-B):address:_hosts'
+ 
+fi