]> git.puffer.fish Git - matthieu/frr.git/commit
ospf6d: check N-bit set in Hello packet
authorckishimo <carles.kishimoto@gmail.com>
Mon, 8 Nov 2021 23:25:06 +0000 (00:25 +0100)
committerckishimo <carles.kishimoto@gmail.com>
Thu, 25 Nov 2021 11:59:09 +0000 (12:59 +0100)
commita581473fbde8e790e74ce64ec2c39d37190113c8
tree4589d13ac940613e824b19c517b9599347fe98c3
parent4f037a39f2f32fb557b8da2bfac7853308782de6
ospf6d: check N-bit set in Hello packet

RFC 3101 states both E-bit and N-bit need to be checked when receiving a Hello packet.

"To support the NSSA option an additional check must be made in the function
that handles the receiving of the Hello packet to verify that both the N-bit
and the E-bit found in the Hello packet's option field match the area type and
ExternalRoutingCapability of the area of the receiving interface."

This PR adds the check for the N-bit

Signed-off-by: ckishimo <carles.kishimoto@gmail.com>
ospf6d/ospf6_message.c