summary refs log tree commit diff
path: root/Completion/Linux/Command
diff options
context:
space:
mode:
authorKenyon Ralph <kenyon@kenyonralph.com>2013-05-04 18:08:10 -0700
committerFrank Terbeck <ft@bewatermyfriend.org>2013-05-05 11:10:46 +0200
commit3d6d6136e201edf03eb31887a49fbde4b3f0d0e8 (patch)
treedccea83e9dee652c1e4435e5efad06779419e93b /Completion/Linux/Command
parent60e41f9fc8de1413ae6f0e16d9e7049772089b15 (diff)
downloadzsh-3d6d6136e201edf03eb31887a49fbde4b3f0d0e8.tar.gz
zsh-3d6d6136e201edf03eb31887a49fbde4b3f0d0e8.tar.xz
zsh-3d6d6136e201edf03eb31887a49fbde4b3f0d0e8.zip
31371: _brctl: update brctl subcommands
Add hairpin and showstp. These are available since at least
bridge-utils 1.5.
Diffstat (limited to 'Completion/Linux/Command')
-rw-r--r--Completion/Linux/Command/_brctl6
1 files changed, 5 insertions, 1 deletions
diff --git a/Completion/Linux/Command/_brctl b/Completion/Linux/Command/_brctl
index 877326821..6e65d122c 100644
--- a/Completion/Linux/Command/_brctl
+++ b/Completion/Linux/Command/_brctl
@@ -10,10 +10,12 @@ if (( CURRENT == 2 )); then
     show:show\ all\ current\ bridge\ instances
     addif:add\ interface\ to\ bridge
     delif:remove\ interface\ from\ bridge
+    hairpin:toggle\ hairpin\ mode\ on\ a\ port
     showmacs:show\ a\ list\ of\ learned\ MAC\ addresses
     setageing:set\ MAC\ address\ ageing\ time
     setgcint:set\ grabage\ collection\ interval
     stp:control\ use\ of\ spanning\ tree\ protocol
+    showstp:show\ bridge\ stp\ info
     setbridgeprio:set\ bridge\ priority
     setfd:set\ bridge\ forward\ delay
     sethello:set\ bridge\ hello\ time
@@ -41,7 +43,7 @@ else
       setbridgeprio)
       	_message -e priority 'priority'
       ;;
-      setpathcost|setportprio)
+      setpathcost|setportprio|hairpin)
         _message -e ports 'port'
       ;;
       stp)
@@ -56,6 +58,8 @@ else
       _message -e cost 'cost'
     elif [[ $subcmd == setportprio ]]; then
       _message -e priority 'priority'
+    elif [[ $subcmd == hairpin ]]; then
+      _message -e onoff 'on|off'
     fi
   fi
 fi