From 8ce9a87755372d7612375bb1a81a288f309746c8 Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Sat, 21 Feb 2015 14:52:17 +0100 Subject: Fixes minor bug in BFD. Thanks to Pavel Tvrdik for noticing it. --- proto/bfd/packets.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'proto/bfd') 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) -- cgit v1.2.3