GATE(8) Linux GATE(8) (NAME) tc-gate - (SYNOPSIS) tc ... action gate [ base-time BASETIME ] [ clockid CLOCKID ] sched-entry [ ] sched-entry [ ] sched-entry [ ] ...... sched-entry [ ] (DESCRIPTION) GATE (ingress) (drop) . tc tc gate . gate (base-time) . gate . gate . (PARAMETERS) base-time . base-time : base-time + (N * cycle-time) N (now) cycle-time . base-time 0 . clockid qdisc . gate (offloading filter) tc filter skip_sw. sched-entry sched-entry . : sched-entry [ ] : 'open' 'close' . : (time slot) . : . -1 (wildcard) . -1 . : () . . -1 (wildcard) . -1 . sched-entry 'close' 'close' . (EXAMPLES) tc IP 192.168.0.20 . . . CLOCK_TAI . . # tc qdisc add dev eth0 ingress # tc filter add dev eth0 parent ffff: protocol ip \ flower skip_hw src_ip 192.168.0.20 \ action gate index 2 clockid CLOCK_TAI \ base-time 200000000000ns \ sched-entry open 200000000ns -1 8000000b \ sched-entry close 100000000ns MAC 10:00:80:00:00:00 ICMP 0 CLOCK_TAI . # tc qdisc add dev eth0 ingress # tc filter add dev eth0 parent ffff: protocol ip \ flower ip_proto icmp dst_mac 10:00:80:00:00:00 \ action gate index 12 sched-entry close 200000000ns (AUTHORS) Po Liu iproute2 12 Mar 2020 GATE(8)