mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
OSPF: Fix some trace messages
Missing argument in MTU change trace message can crash bird when MTU change happens and trace messages are active. Thanks to Alexander Velkov for the bugreport.
This commit is contained in:
parent
df50598f1c
commit
0ac9cb2c1f
@ -290,7 +290,7 @@ ospf_receive_hello(struct ospf_packet *pkt, struct ospf_iface *ifa,
|
|||||||
if (!ipa_equal(faddr, n->ip))
|
if (!ipa_equal(faddr, n->ip))
|
||||||
{
|
{
|
||||||
OSPF_TRACE(D_EVENTS, "Neighbor %R on %s changed IP address to %I",
|
OSPF_TRACE(D_EVENTS, "Neighbor %R on %s changed IP address to %I",
|
||||||
n->rid, ifa->ifname, n->ip, faddr);
|
n->rid, ifa->ifname, faddr);
|
||||||
n->ip = faddr;
|
n->ip = faddr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1278,7 +1278,8 @@ ospf_iface_change_mtu(struct ospf_proto *p, struct ospf_iface *ifa)
|
|||||||
{
|
{
|
||||||
/* ifa is not vlink */
|
/* ifa is not vlink */
|
||||||
|
|
||||||
OSPF_TRACE(D_EVENTS, "Interface %s changed MTU to %d", ifa->iface->mtu);
|
OSPF_TRACE(D_EVENTS, "Interface %s changed MTU to %d",
|
||||||
|
ifa->ifname, ifa->iface->mtu);
|
||||||
|
|
||||||
ifa->tx_length = ifa_tx_length(ifa);
|
ifa->tx_length = ifa_tx_length(ifa);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user