mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 17:51:53 +00:00
Minor fixes.
This commit is contained in:
parent
691057f033
commit
9b061f7ea5
@ -854,7 +854,7 @@ static inline void
|
|||||||
check_sum_net_lsa(struct proto_ospf *po, ort *nf)
|
check_sum_net_lsa(struct proto_ospf *po, ort *nf)
|
||||||
{
|
{
|
||||||
struct area_net *anet = NULL;
|
struct area_net *anet = NULL;
|
||||||
struct ospf_area *anet_oa;
|
struct ospf_area *anet_oa = NULL;
|
||||||
|
|
||||||
/* RT entry marked as area network */
|
/* RT entry marked as area network */
|
||||||
if (nf->fn.x0)
|
if (nf->fn.x0)
|
||||||
|
@ -549,11 +549,11 @@ krt_read_addr(struct ks_msg *msg)
|
|||||||
{
|
{
|
||||||
ifa.prefix = ipa_and(ifa.ip, ipa_mkmask(masklen));
|
ifa.prefix = ipa_and(ifa.ip, ipa_mkmask(masklen));
|
||||||
|
|
||||||
if (i->ifa_prefixlen == BITS_PER_IP_ADDRESS - 1)
|
if (masklen == (BITS_PER_IP_ADDRESS - 1))
|
||||||
ifa.opposite = ipa_opposite_m1(ifa.ip);
|
ifa.opposite = ipa_opposite_m1(ifa.ip);
|
||||||
|
|
||||||
#ifndef IPV6
|
#ifndef IPV6
|
||||||
if (i->ifa_prefixlen == BITS_PER_IP_ADDRESS - 2)
|
if (masklen == (BITS_PER_IP_ADDRESS - 2))
|
||||||
ifa.opposite = ipa_opposite_m2(ifa.ip);
|
ifa.opposite = ipa_opposite_m2(ifa.ip);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user