diff options
author | zmw12306 <zmw12306@gmail.com> | 2023-06-03 21:08:34 +0200 |
---|---|---|
committer | zmw12306 <zmw12306@gmail.com> | 2023-06-03 21:08:34 +0200 |
commit | 3f658e8b1cfc82e1644cc36fcbc1554c70f558d0 (patch) | |
tree | 302c84b431c195dd71635b5aedeedf22c0c4f6f1 /bfdd | |
parent | Merge pull request #13149 from pushpasis/mgmt_cleanup_zlog (diff) | |
download | frr-3f658e8b1cfc82e1644cc36fcbc1554c70f558d0.tar.xz frr-3f658e8b1cfc82e1644cc36fcbc1554c70f558d0.zip |
bfdd: fix version bits check.
The version of bfd pkt is represented by 3 bits in B[0].
Signed-off-by: zmw12306 <zmw12306@gmail.com>
Diffstat (limited to 'bfdd')
-rw-r--r-- | bfdd/bfd.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfdd/bfd.h b/bfdd/bfd.h index 5451e66c2..be0326151 100644 --- a/bfdd/bfd.h +++ b/bfdd/bfd.h @@ -79,7 +79,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) |