]> git.ipfire.org Git - thirdparty/iproute2.git/commit
tc: gred: Handle unsigned values properly in option parsing/printing
authorDavid Ward <david.ward@ll.mit.edu>
Mon, 18 May 2015 15:35:12 +0000 (11:35 -0400)
committerStephen Hemminger <shemming@brocade.com>
Thu, 21 May 2015 21:16:03 +0000 (14:16 -0700)
commiteb6d7d6af1c2d65c4e905807fc44aba682e71b4c
treeba745994076076c7fa625d01704c0e6db071dae7
parent1693a4d392779adf004b99b0864f9cf0cd4a8a4f
tc: gred: Handle unsigned values properly in option parsing/printing

DPs, def_DP, and DP are unsigned values that are sent and received
in TCA_GRED_* netlink attributes; handle them properly when they
are parsed or printed. Use MAX_DPs as the initial value for def_DP
and DP, and fix the operator used for bounds checking them.

Signed-off-by: David Ward <david.ward@ll.mit.edu>
tc/q_gred.c