Merge pull request #13760 from FRRouting/mergify/bp/dev/9.0/pr-13675

bfd:fix version bits check (backport #13675)
This commit is contained in:
Donatas Abraitis 2023-06-11 21:40:02 +03:00 committed by GitHub
commit 5dc6972e13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,7 +93,7 @@ struct bfd_echo_pkt {
/* Macros for manipulating control packets */
#define BFD_VERMASK 0x03
#define BFD_VERMASK 0x07
#define BFD_DIAGMASK 0x1F
#define BFD_GETVER(diag) ((diag >> 5) & BFD_VERMASK)
#define BFD_SETVER(diag, val) ((diag) |= (val & BFD_VERMASK) << 5)