]> git.puffer.fish Git - matthieu/frr.git/commit
ldpd: fix corner case in which we wouldn't respect the max pdu length
authorRenato Westphal <renato@opensourcerouting.org>
Tue, 22 Jan 2019 19:50:33 +0000 (17:50 -0200)
committerRenato Westphal <renato@opensourcerouting.org>
Tue, 22 Jan 2019 20:17:44 +0000 (18:17 -0200)
commit7ced70a6e566eda5f4fea7ae45faec9ca91c18f3
tree6094960542e09b81e4f86fb6a6a5a720f4df2801
parentf10780c9c39ede4ca27a48e5372204409a5f41ba
ldpd: fix corner case in which we wouldn't respect the max pdu length

The calculation to know when an LDP PDU went past the maximum
negotiated PDU length was wrong because it wasn't taking the
"Version" and "PDU Length" fields into account (total of four
bytes). Fix this.

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