]> git.proxmox.com Git - mirror_frr.git/commit
isisd: fix validation of prefix-sid flags
authorRenato Westphal <renato@opensourcerouting.org>
Fri, 9 Aug 2019 17:18:52 +0000 (14:18 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Tue, 17 Sep 2019 04:30:12 +0000 (01:30 -0300)
commit8b1e3453da1a1674e05fd802209a5213d89b835b
tree0ebdd34d6fbd402f8b90a7099b1800b7850f9d5d
parent6cf38339223e17cf9e5073c8916e2fce0a469c5c
isisd: fix validation of prefix-sid flags

The original check would always evaluate to false since
ISIS_PREFIX_SID_VALUE and ISIS_PREFIX_SID_LOCAL have different
values.  Use !! to normalize the return value of the individual
checks to either 0 or 1, making the code do what was intended
(ensure the V/L flags are both 0 or 1).

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
isisd/isis_tlvs.c