diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2015-02-21 14:52:17 +0100 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2015-02-21 14:52:17 +0100 |
commit | 8ce9a87755372d7612375bb1a81a288f309746c8 (patch) | |
tree | 39cf1d7c01a7a7e69d8bce095cc7a09ca6c494b9 /proto | |
parent | 51762a45b39f906fe72db2d3d46c9890cb01bbd8 (diff) |
Fixes minor bug in BFD.
Thanks to Pavel Tvrdik for noticing it.
Diffstat (limited to 'proto')
-rw-r--r-- | proto/bfd/packets.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/bfd/packets.c b/proto/bfd/packets.c index 49b69bed..8818453b 100644 --- a/proto/bfd/packets.c +++ b/proto/bfd/packets.c @@ -33,7 +33,7 @@ static inline u8 bfd_pkt_get_version(struct bfd_ctl_packet *pkt) { return pkt->vdiag >> 5; } static inline u8 bfd_pkt_get_diag(struct bfd_ctl_packet *pkt) -{ return pkt->vdiag && 0x1f; } +{ return pkt->vdiag & 0x1f; } static inline u8 bfd_pkt_get_state(struct bfd_ctl_packet *pkt) |