diff options
author | Axel Beckert <abe@deuxchevaux.org> | 2018-12-24 04:40:22 +0100 |
---|---|---|
committer | Axel Beckert <abe@deuxchevaux.org> | 2018-12-24 04:40:22 +0100 |
commit | bf8b7f713a5b04a191f4596fb86bbbfca0a855ce (patch) | |
tree | b647a8dc990c8c845b8a8eca7bf92fbbf17e1fb5 /Completion/Unix/Command/_ping | |
parent | 06946d431a4426c6e5dffec1d7edb17c1dbd467c (diff) | |
parent | 9dbde9e9c7d22ee0d301e4a2fecf97906d1ddce9 (diff) | |
download | zsh-bf8b7f713a5b04a191f4596fb86bbbfca0a855ce.tar.gz zsh-bf8b7f713a5b04a191f4596fb86bbbfca0a855ce.zip |
New upstream release candidate 5.6.2-test-2
Merge branch 'upstream' at 'zsh-5.6.2-test-2' into branch debian
Diffstat (limited to 'Completion/Unix/Command/_ping')
-rw-r--r-- | Completion/Unix/Command/_ping | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/Completion/Unix/Command/_ping b/Completion/Unix/Command/_ping index 2efe545c6..78fd33d92 100644 --- a/Completion/Unix/Command/_ping +++ b/Completion/Unix/Command/_ping @@ -37,7 +37,7 @@ case ${variant}:${${service#ping}:-4} in iputils:*|((free|net)bsd|darwin|dragonfly)*:4) 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)' ) ;| iputils:*|openbsd*:4|solaris*) @@ -58,10 +58,7 @@ case ${variant}:${${service#ping}:-4} in args+=( "-D[set the don't fragment bit]" ) ;| ((free|net)bsd|darwin|dragonfly)*:4) - args+=( - '-Q[somewhat quiet]' - '-T+[set IP Time to Live for outgoing packets]:ttl' - ) + args+=( '-Q[somewhat quiet]') ;| freebsd*:6|darwin*:6|solaris*|netbsd*) args+=( @@ -84,7 +81,7 @@ case ${variant}:${${service#ping}:-4} in (*bsd|darwin)*:6) 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' ) ;| solaris2.<11->) @@ -101,17 +98,19 @@ case ${variant}:${${service#ping}:-4} in '-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+[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)' '-W+[specify time to wait for a response]:wait time (ms)' '-z+[specify type of service]:type of service' ) - ;; + ;| (freebsd|darwin)*:6) args+=( + '-D[disable IPv6 fragmentation]' '-R[audible bell for no packet]' '-r[audible bell for each packet]' ) - ;; + ;| freebsd*:6) args+=( '-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' '-h+[specify target host]:host:_hosts' '-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' ) ;; (dragonfly|netbsd)*:6) args+=( '-R[inject reachability confirmation hint for target host/first hop]' ) - ;| + ;; 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) args+=( '-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*) 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)' + '--apple-connect[connects the socket to the destination address]' + '--apple-time[prints the time a packet was received]' ) ;; openbsd*:4) |