about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorPaul Ackersviller <packersv@users.sourceforge.net>2007-11-11 22:07:58 +0000
committerPaul Ackersviller <packersv@users.sourceforge.net>2007-11-11 22:07:58 +0000
commit8c292440390c2b6277d5ca13b028f8d64b3332a5 (patch)
tree9adb9c0843ce2912e9e6fd3f3331e2d61f9d6772 /Completion
parent970345731f4b9d6afe9a4965a287552a57514b05 (diff)
downloadzsh-8c292440390c2b6277d5ca13b028f8d64b3332a5.tar.gz
zsh-8c292440390c2b6277d5ca13b028f8d64b3332a5.tar.xz
zsh-8c292440390c2b6277d5ca13b028f8d64b3332a5.zip
Merge of 23140: handle syntax for iputils variant as well as whichever arping for which we had already been completing.
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Unix/Command/_arping42
1 files changed, 42 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_arping b/Completion/Unix/Command/_arping
new file mode 100644
index 000000000..5fc65a27a
--- /dev/null
+++ b/Completion/Unix/Command/_arping
@@ -0,0 +1,42 @@
+#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]' \
+  '-a[audible ping]' \
+  '*-v[verbose output]' \
+  '-r[raw output: only the MAC/IP address displayed]' \
+  '-R[like -r but shows "the other one"]' \
+  '-d[find duplicate replies]' \
+  '(:)-B[255.255.255.255]' \
+  '-0[source 0.0.0.0]' \
+  '-b[source 255.255.255.255]' \
+  '-S[set source IP]:source IP address:_hosts' \
+  '-T[target IP]:target IP address:_hosts' \
+  '-p[turn on promiscuous mode]' \
+  '-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:_net_interfaces' \
+  '-A[only count addresses matching requested address]' \
+  '(-B):address:_hosts'
+ 
+fi