]> git.proxmox.com Git - mirror_iproute2.git/commit - tc/tc_util.c
tc: don't accept qdisc 'handle' greater than ffff
authorDavide Caratti <dcaratti@redhat.com>
Fri, 16 Sep 2016 08:30:00 +0000 (10:30 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Tue, 20 Sep 2016 16:44:59 +0000 (09:44 -0700)
commit087dec7fcfb18fc4e8a0ec68c9c0a84cb9f03e69
tree794d215b61a262b5076d1cd9629a0701351e6be6
parent003f0fde6959b0f759fd1cc27201eb367753443e
tc: don't accept qdisc 'handle' greater than ffff

since get_qdisc_handle() truncates the input value to 16 bit, return an
error and prompt "invalid qdisc ID" in case input 'handle' parameter needs
more than 16 bit to be stored.

Signed-off-by: Davide Caratti <dcaratti@redhat.com>
Acked-by: Phil Sutter <phil@nwl.cc>
tc/tc_util.c