From: Ondrej Zajicek Date: Sat, 21 Feb 2015 13:52:17 +0000 (+0100) Subject: Fixes minor bug in BFD. X-Git-Tag: v1.5.0~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ce9a87755372d7612375bb1a81a288f309746c8;p=thirdparty%2Fbird.git Fixes minor bug in BFD. Thanks to Pavel Tvrdik for noticing it. --- diff --git a/proto/bfd/packets.c b/proto/bfd/packets.c index 49b69bed4..8818453bb 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)