Lines Matching refs:IP
36 # - replace hardcoded ip/tc location with variables
105 # - optional tc & ip command logging (into /var/run/cbq-*)
152 # of Linux kernel is provided by "ip" and "tc" utilities from A. Kuznetsov's
153 # iproute2 package, available at ftp://ftp.inr.ac.ru/ip-routing. Because the
162 # face "ip" and "tc" interface.
372 # realms, see Alexey Kuznetsov's IP Command Reference. This script
477 IP=/sbin/ip
514 ip link show| sed -n "/^[0-9]/ \
648 ### Check for presence of ip-route2 in usual place
649 [ -x $TC -a -x $IP ] ||
650 cbq_failure "ip-route2 utilities not installed or executable!"
653 ### ip/tc wrappers
658 ip () {
659 $IP "$@"
660 } # ip
670 ### Logging version of "ip" command
671 ip () {
672 echo -e "\n# ip $@" >> $CBQ_DEBUG
673 $IP "$@" 2>&1 | tee -a $CBQ_DEBUG
674 } # ip
684 ip () {
685 $IP "$@"
686 } # ip
691 fi # ip/tc wrappers
746 ip link show $dev &> /dev/null ||
788 tc filter add dev $DEVICE parent 1:0 protocol ip \
802 tc filter add dev $DEVICE parent 1:0 protocol ip \
837 u32_s="${SPORT:+match ip sport $SPORT $SMASK}"
838 u32_s="${SADDR:+match ip src $SADDR} $u32_s"
839 u32_d="${DPORT:+match ip dport $DPORT $DMASK}"
840 u32_d="${DADDR:+match ip dst $DADDR} $u32_d"
846 tc filter add dev $DEVICE parent 1:0 protocol ip \