summaryrefslogtreecommitdiff
path: root/bfdd
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2023-06-11 14:16:50 +0300
committerGitHub <noreply@github.com>2023-06-11 14:16:50 +0300
commit5b28833d38319ae5cb48235ae0261dd57e35dbd2 (patch)
treedead8f02db14cefd55718288f49a6a4b356cf45b /bfdd
parent6a6c31ecdf377ad9670feea93646c28fca205ec4 (diff)
parent3f658e8b1cfc82e1644cc36fcbc1554c70f558d0 (diff)
Merge pull request #13675 from zmw12306/bfd_version_check
bfd:fix version bits check
Diffstat (limited to 'bfdd')
-rw-r--r--bfdd/bfd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfdd/bfd.h b/bfdd/bfd.h
index 69529aba17..6c5a1e9216 100644
--- a/bfdd/bfd.h
+++ b/bfdd/bfd.h
@@ -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)