Home | History | Annotate | Download | only in examples

Lines Matching refs:cbq

3 #    cbq.init v0.7.3
8 # description: sets up CBQ-based traffic control
26 # http://freshmeat.net/projects/cbq.init
70 # - added caching to speed up CBQ start, the cache is invalidated
106 # - optional tc & ip command logging (into /var/run/cbq-*)
137 # Just start "cbq.init timecheck" periodically from cron
139 # "cbq.init start" for CBQ to initialize.
148 # First of all - this is just a SIMPLE EXAMPLE of CBQ power.
152 # CBQ-based traffic control on Linux. Access to advanced networking features
167 # configuration is stored in a file (/var/cache/cbq.init by default) which
169 # configuration files. This cache is invalidated whenever any of the CBQ
170 # configuration files changes. If you want to run "cbq.init start" without
171 # caching, run it as "cbq.init start nocache". If you want to force cache
172 # invalidation, run it as "cbq.init start invalidate". Caching is disabled
182 # All CBQ parameters are valid for Ethernet interfaces only, The script was
191 # (/etc/sysconfig/cbq by default) - one file per class.
193 # The config file names must obey mandatory format: cbq-<clsid>.<name> where
195 # is a CBQ class ID) and <name> is the name of the class -- anything to help
201 # cbq-1280.My_first_shaper
251 # structures of CBQ classes. The ordering is important so that parent
256 # Tells the script to attach specified leaf queueing discipline to CBQ
257 # class. By default, TBF is used. Note that attaching TBF to CBQ class
324 # that SFQ does not do any traffic shaping - the shaping is done by the CBQ
423 # Sample configuration file: cbq-1280.My_first_shaper
438 # traffic in both directions, you must set up CBQ for both interfaces.
447 # and traffic in the opposite direction to 128Kbit. You need to setup CBQ
450 # cbq-028.backbone-client
459 # cbq-128.client-backbone
487 CBQ_PATH=${CBQ_PATH:-/etc/sysconfig/cbq}
488 CBQ_CACHE=${CBQ_CACHE:-/var/cache/cbq.init}
491 #CBQ_DEBUG="/var/run/cbq-$1"
505 [ -r /etc/sysconfig/cbq/avpkt ] && . /etc/sysconfig/cbq/avpkt
526 ### Remove CBQ from all devices
536 echo -e "**CBQ: $@"
545 ### Failure w/ cbq-off
561 ### Display CBQ setup
582 CLASSLIST=`find $1 \( -type f -or -type l \) -name 'cbq-*' \
587 ### Gather all DEVICE fields from $1/cbq-*
588 DEVFIELDS=`find $1 \( -type f -or -type l \) -name 'cbq-*' \
593 cbq_failure "no DEVICE field found in $1/cbq-*!"
604 CLASS=`echo $2| sed 's/^cbq-0*//; s/^\([0-9a-fA-F]\+\).*/\1/'`
722 cbq_fail_off "failed to compile CBQ configuration!"
755 tc qdisc add dev $dev root handle 1 cbq \
760 tc class change dev $dev root cbq weight $DEVWGHT allot 1514
771 tc class add dev $DEVICE parent 1:$PARENT classid 1:$CLASS cbq \
917 ### Get current RATE of CBQ class
919 "/cbq 1:$CLASS / { s/.*rate //; s/ .*//; p; q; }"`
944 ### Replace CBQ class
945 tc class replace dev $DEVICE classid 1:$CLASS cbq \