]> git.puffer.fish Git - matthieu/frr.git/commit
babeld: Add input validation for update TLV.
authorzmw12306 <zmw12306@gmail.com>
Mon, 31 Mar 2025 04:01:30 +0000 (00:01 -0400)
committerzmw12306 <zmw12306@gmail.com>
Mon, 31 Mar 2025 04:01:30 +0000 (00:01 -0400)
commitc2e69624baae9563fa4342c9ade19f9fec8fb0ce
tree2821f2c7f984eed9adb6ca8c5cb47d19d0303eec
parent44c4743e08710fd9dda12105ff6fbec2547faf51
babeld: Add input validation for update TLV.

1. If the metric is infinite and AE is 0, Plen and Omitted MUST both be 0
2. Use INFINITY to replace 0xFFFF
3. Ignore unkown ae
4. If the metric field if 0xFFFF, a retraction happens So it is acceptable for no router_id when metric is 0xFFFF while ae is not 0.

Signed-off-by: zmw12306 <zmw12306@gmail.com>
babeld/message.c