commit | 424adc19bf6365224ab2b594fad78681e0a028c3 | [log] [tgz] |
---|---|---|
author | Li Wei <lw@cn.fujitsu.com> | Tue Jul 10 16:45:28 2012 +0800 |
committer | Stephen Hemminger <shemminger@vyatta.com> | Tue Jul 10 15:39:30 2012 -0700 |
tree | f37daddebe69c2762f9a6f6b1d1ad550f2b58d76 | |
parent | 690b11f4a6b8e2515fe5f9e94a80aaeceb84a391 [diff] |
tc: filter: validate filter priority in userspace. Because we use the high 16 bits of tcm_info to pass prio value to kernel, thus it's range would be [0, 0xffff], without validation in tc when user pass a lager(>65535) priority, the actual priority set in kernel would confuse the user. So, add a validation to ensure prio in the range.