summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ldpd/labelmapping.c
diff options
context:
space:
mode:
authorrenato <renato@openbsd.org>2017-03-03 23:59:58 +0000
committerrenato <renato@openbsd.org>2017-03-03 23:59:58 +0000
commit438d900932bf676187e412bcbf40f176dbb5f0db (patch)
tree03bcd5c573cf30fd0cec90190be76deb6504c2cc /usr.sbin/ldpd/labelmapping.c
parentThe PW Status is an unknown TLV. (diff)
downloadwireguard-openbsd-438d900932bf676187e412bcbf40f176dbb5f0db.tar.xz
wireguard-openbsd-438d900932bf676187e412bcbf40f176dbb5f0db.zip
Fix processing of Label Withdraw messages.
Whenever we receive a Label Withdraw message with an optional Label TLV, we should check if this label matches the label previously received from this neighbor for this FEC. If they don't match then we shouldn't uninstall the previous label from the kernel. This fixes a misinterpretation from the "Receive Label Withdraw" algorithm described in the A.1.5 section of RFC 5036. Also, simplify the check of pending withdraws in lde_check_release() and lde_check_release_wcard().
Diffstat (limited to 'usr.sbin/ldpd/labelmapping.c')
0 files changed, 0 insertions, 0 deletions