summary refs log tree commit diff
path: root/Completion/Unix
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Unix')
-rw-r--r--Completion/Unix/Command/.distfiles2
-rw-r--r--Completion/Unix/Command/_arping20
2 files changed, 21 insertions, 1 deletions
diff --git a/Completion/Unix/Command/.distfiles b/Completion/Unix/Command/.distfiles
index 1a44b1d7d..f8ac246e0 100644
--- a/Completion/Unix/Command/.distfiles
+++ b/Completion/Unix/Command/.distfiles
@@ -15,5 +15,5 @@ _dd           _gprof        _lynx         _perldoc      _telnet       _pine
 _dict         _grep         _lzop         _prcs         _tiff         _elm
 _diff         _gs           _make         _psutils      _tin	_apm  _mail
 _last         _loadkeys     _modutils     _ruby         _sysctl _links _samba
-_user_admin   _rsync
+_user_admin   _rsync        _arping
 '
diff --git a/Completion/Unix/Command/_arping b/Completion/Unix/Command/_arping
new file mode 100644
index 000000000..89bdccd92
--- /dev/null
+++ b/Completion/Unix/Command/_arping
@@ -0,0 +1,20 @@
+#compdef arping
+
+_arguments -s \
+	'-h[help]' \
+	'-q[quiet]' \
+	'-v[verbose]' \
+	'-r[raw]' \
+	'-R[Raw]' \
+	'-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[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:' \
+	':address:_hosts' \