mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-17 16:48:43 +00:00
Fixes minor bug in BFD.
Thanks to Pavel Tvrdik for noticing it.
This commit is contained in:
parent
51762a45b3
commit
8ce9a87755
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user