Merge pull request #13358 from zmw12306/ignore_nonzero_flags

This commit is contained in:
Donald Sharp 2023-04-23 07:25:30 -04:00 committed by GitHub
commit 97ed21a546
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -413,18 +413,6 @@ parse_packet(const unsigned char *from, struct interface *ifp,
#define BABEL_UNICAST_HELLO 0x8000
DO_NTOHS(flags, message + 2);
/*
* RFC 8966 4.6.5
* All other bits MUST be sent as a 0 and silently
* ignored on reception
*/
if (CHECK_FLAG(flags, ~BABEL_UNICAST_HELLO)) {
debugf(BABEL_DEBUG_COMMON,
"Received Hello from %s on %s that does not have all 0's in the unused section of flags, ignoring",
format_address(from), ifp->name);
goto done;
}
/*
* RFC 8966 Appendix F
* TL;DR -> Please ignore Unicast hellos until FRR's