mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-04 10:41:11 +02:00
43746: _ping: update for BSD and Darwin
This commit is contained in:
parent
967c964e21
commit
ce048aee38
2 changed files with 19 additions and 11 deletions
|
@ -1,5 +1,8 @@
|
||||||
2018-10-31 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
|
2018-10-31 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
|
||||||
|
|
||||||
|
* 43746: Completion/Unix/Command/_ping: update for BSD and
|
||||||
|
Darwin
|
||||||
|
|
||||||
* 43744: Completion/Unix/Command/_sysctl: add support for
|
* 43744: Completion/Unix/Command/_sysctl: add support for
|
||||||
procps-ng (Linux) and NetBSD, with several other updates
|
procps-ng (Linux) and NetBSD, with several other updates
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@ case ${variant}:${${service#ping}:-4} in
|
||||||
iputils:*|((free|net)bsd|darwin|dragonfly)*:4)
|
iputils:*|((free|net)bsd|darwin|dragonfly)*:4)
|
||||||
args+=( '-a[audible bell for each packet]' )
|
args+=( '-a[audible bell for each packet]' )
|
||||||
;|
|
;|
|
||||||
iputils:*|(net|open)bsd*:4)
|
iputils:*|netbsd*:4|openbsd*)
|
||||||
args+=( '-w+[specify timeout after which ping exits]:deadline (seconds)' )
|
args+=( '-w+[specify timeout after which ping exits]:deadline (seconds)' )
|
||||||
;|
|
;|
|
||||||
iputils:*|openbsd*:4|solaris*)
|
iputils:*|openbsd*:4|solaris*)
|
||||||
|
@ -58,10 +58,7 @@ case ${variant}:${${service#ping}:-4} in
|
||||||
args+=( "-D[set the don't fragment bit]" )
|
args+=( "-D[set the don't fragment bit]" )
|
||||||
;|
|
;|
|
||||||
((free|net)bsd|darwin|dragonfly)*:4)
|
((free|net)bsd|darwin|dragonfly)*:4)
|
||||||
args+=(
|
args+=( '-Q[somewhat quiet]')
|
||||||
'-Q[somewhat quiet]'
|
|
||||||
'-T+[set IP Time to Live for outgoing packets]:ttl'
|
|
||||||
)
|
|
||||||
;|
|
;|
|
||||||
freebsd*:6|darwin*:6|solaris*|netbsd*)
|
freebsd*:6|darwin*:6|solaris*|netbsd*)
|
||||||
args+=(
|
args+=(
|
||||||
|
@ -84,7 +81,7 @@ case ${variant}:${${service#ping}:-4} in
|
||||||
(*bsd|darwin)*:6)
|
(*bsd|darwin)*:6)
|
||||||
args+=( '*-m[suppress fragmenting of packets into the minimum IPv6 MTU]' )
|
args+=( '*-m[suppress fragmenting of packets into the minimum IPv6 MTU]' )
|
||||||
;|
|
;|
|
||||||
freebsd*|darwin*|dragonfly*|netbsd*:6)
|
freebsd*|darwin*|netbsd*:6)
|
||||||
args+=( '-P+[specify IPsec policy to be used for the probe]:policy' )
|
args+=( '-P+[specify IPsec policy to be used for the probe]:policy' )
|
||||||
;|
|
;|
|
||||||
solaris2.<11->)
|
solaris2.<11->)
|
||||||
|
@ -101,17 +98,19 @@ case ${variant}:${${service#ping}:-4} in
|
||||||
'-h+[specify size increment for ICMP payload for sweeping pings]:size [1]'
|
'-h+[specify size increment for ICMP payload for sweeping pings]:size [1]'
|
||||||
'-M+[use ICMP_MASKREQ or ICMP_TSTAMP instead of ICMP_ECHO]:ICMP:(mask time)'
|
'-M+[use ICMP_MASKREQ or ICMP_TSTAMP instead of ICMP_ECHO]:ICMP:(mask time)'
|
||||||
'-m+[set IP Time to Live for outgoing packets]:ttl'
|
'-m+[set IP Time to Live for outgoing packets]:ttl'
|
||||||
|
'-T+[set IP Time to Live for multicasted packets]:ttl'
|
||||||
'-t+[specify timeout after which ping exits]:deadline (seconds)'
|
'-t+[specify timeout after which ping exits]:deadline (seconds)'
|
||||||
'-W+[specify time to wait for a response]:wait time (ms)'
|
'-W+[specify time to wait for a response]:wait time (ms)'
|
||||||
'-z+[specify type of service]:type of service'
|
'-z+[specify type of service]:type of service'
|
||||||
)
|
)
|
||||||
;;
|
;|
|
||||||
(freebsd|darwin)*:6)
|
(freebsd|darwin)*:6)
|
||||||
args+=(
|
args+=(
|
||||||
|
'-D[disable IPv6 fragmentation]'
|
||||||
'-R[audible bell for no packet]'
|
'-R[audible bell for no packet]'
|
||||||
'-r[audible bell for each packet]'
|
'-r[audible bell for each packet]'
|
||||||
)
|
)
|
||||||
;;
|
;|
|
||||||
freebsd*:6)
|
freebsd*:6)
|
||||||
args+=(
|
args+=(
|
||||||
'-x+[specify time to wait for a response]:wait time (ms)'
|
'-x+[specify time to wait for a response]:wait time (ms)'
|
||||||
|
@ -124,24 +123,30 @@ case ${variant}:${${service#ping}:-4} in
|
||||||
'-E+[specify IPsec policy to be used for the probe]:policy'
|
'-E+[specify IPsec policy to be used for the probe]:policy'
|
||||||
'-h+[specify target host]:host:_hosts'
|
'-h+[specify target host]:host:_hosts'
|
||||||
'-P+[use a pseudo-random sequence for the data]'
|
'-P+[use a pseudo-random sequence for the data]'
|
||||||
|
'-T+[set IP Time to Live for outgoing packets]:ttl'
|
||||||
'-t+[specify type of service]:type of service'
|
'-t+[specify type of service]:type of service'
|
||||||
)
|
)
|
||||||
;;
|
;;
|
||||||
(dragonfly|netbsd)*:6)
|
(dragonfly|netbsd)*:6)
|
||||||
args+=( '-R[inject reachability confirmation hint for target host/first hop]' )
|
args+=( '-R[inject reachability confirmation hint for target host/first hop]' )
|
||||||
;|
|
;;
|
||||||
darwin*:4)
|
darwin*:4)
|
||||||
args+=( '-b+[bind the socket to specified interface for sending]:interface:_net_interfaces' )
|
args+=( '-b+[bind the socket to specified interface for sending]:interface:_net_interfaces')
|
||||||
;|
|
;|
|
||||||
darwin*:6)
|
darwin*:6)
|
||||||
args+=(
|
args+=(
|
||||||
'-B+[bind the socket to specified interface for sending]:interface:_net_interfaces'
|
'-B+[bind the socket to specified interface for sending]:interface:_net_interfaces'
|
||||||
'-C[prohibit socket from using cellular network interface]'
|
'-G+[specify max,min,increment size for ICMP payload for sweeping pings]:max,min,incr (defalt min=0 incr=1)'
|
||||||
|
'-z+[specify traffic class]:traffic class'
|
||||||
)
|
)
|
||||||
;|
|
;|
|
||||||
darwin*)
|
darwin*)
|
||||||
args+=(
|
args+=(
|
||||||
|
'-C[prohibit socket from using cellular network interface]'
|
||||||
|
'-K+[specify network service type for sending ICMP packets]:serviece type:(BK_SYS BK BE RV AV RD OAM VI SIG VO)'
|
||||||
'-k+[specify traffic class to use for sending ICMP packets]:traffic class [CTL]:(BK_SYS BK BE RD OAM AV RV VI VO CTL)'
|
'-k+[specify traffic class to use for sending ICMP packets]:traffic class [CTL]:(BK_SYS BK BE RD OAM AV RV VI VO CTL)'
|
||||||
|
'--apple-connect[connects the socket to the destination address]'
|
||||||
|
'--apple-time[prints the time a packet was received]'
|
||||||
)
|
)
|
||||||
;;
|
;;
|
||||||
openbsd*:4)
|
openbsd*:4)
|
||||||
|
|
Loading…
Reference in a new issue