forked from Mirror/frr
bfdd: add check for flag M
Signed-off-by: zmw12306 <zmw12306@gmail.com>
This commit is contained in:
parent
9b96394d05
commit
665ec41339
|
@ -89,6 +89,8 @@ struct bfd_echo_pkt {
|
||||||
#define BFD_CBIT 0x08
|
#define BFD_CBIT 0x08
|
||||||
#define BFD_ABIT 0x04
|
#define BFD_ABIT 0x04
|
||||||
#define BFD_DEMANDBIT 0x02
|
#define BFD_DEMANDBIT 0x02
|
||||||
|
#define BFD_MBIT 0x01
|
||||||
|
#define BFD_GETMBIT(flags) (flags & BFD_MBIT)
|
||||||
#define BFD_SETDEMANDBIT(flags, val) \
|
#define BFD_SETDEMANDBIT(flags, val) \
|
||||||
{ \
|
{ \
|
||||||
if ((val)) \
|
if ((val)) \
|
||||||
|
|
|
@ -862,6 +862,12 @@ void bfd_recv_cb(struct event *t)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (BFD_GETMBIT(cp->flags)) {
|
||||||
|
cp_debug(is_mhop, &peer, &local, ifindex, vrfid,
|
||||||
|
"detect non-zero Multipoint (M) flag");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (cp->discrs.my_discr == 0) {
|
if (cp->discrs.my_discr == 0) {
|
||||||
cp_debug(is_mhop, &peer, &local, ifindex, vrfid,
|
cp_debug(is_mhop, &peer, &local, ifindex, vrfid,
|
||||||
"'my discriminator' is zero");
|
"'my discriminator' is zero");
|
||||||
|
|
Loading…
Reference in a new issue