network: reject bridge port priorities above kernel's max value. (#5877)
authorDimitri John Ledkov <xnox@ubuntu.com>
Tue, 2 May 2017 19:32:42 +0000 (20:32 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 2 May 2017 19:32:42 +0000 (15:32 -0400)
commitf00ff0de40030ed86e7d78c8c1f77b042b51d38c
tree03a50b922c2b8a8455fce12e5b6fbd4f0a4fa2b4
parentb7674ecd5b456d31c7a459f002ccb995a2daec50
network: reject bridge port priorities above kernel's max value. (#5877)

Bridge port priority in the kernel can only be between 0 and 63. Therefore
reject values above maximum.

Fixes: #5729
src/libsystemd-network/network-internal.c
src/libsystemd-network/network-internal.h
src/network/networkd-link.h
src/network/networkd-network-gperf.gperf