Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff -Naur bird-1.3.4/proto/ospf/iface.c bird-1.3.4~loosecheck/proto/ospf/iface.c
- --- bird-1.3.4/proto/ospf/iface.c 2011-07-10 09:58:51.000000000 +0000
- +++ bird-1.3.4~loosecheck/proto/ospf/iface.c 2014-04-23 20:21:00.788463378 +0000
- @@ -534,23 +534,32 @@
- /* Check validity of interface type */
- int old_type = ifa->type;
- + int pref_type = ifa->type;
- #ifdef OSPFv2
- if ((ifa->type == OSPF_IT_BCAST) && (addr->flags & IA_PEER))
- - ifa->type = OSPF_IT_PTP;
- + /*ifa->type = OSPF_IT_PTP;*/
- + pref_type = OSPF_IT_PTP;
- if ((ifa->type == OSPF_IT_NBMA) && (addr->flags & IA_PEER))
- - ifa->type = OSPF_IT_PTMP;
- + /*ifa->type = OSPF_IT_PTMP;*/
- + pref_type = OSPF_IT_PTMP;
- #endif
- if ((ifa->type == OSPF_IT_BCAST) && !(iface->flags & IF_MULTICAST))
- - ifa->type = OSPF_IT_NBMA;
- + /*ifa->type = OSPF_IT_NBMA;*/
- + pref_type = OSPF_IT_NBMA;
- if ((ifa->type == OSPF_IT_PTP) && !(iface->flags & IF_MULTICAST))
- - ifa->type = OSPF_IT_PTMP;
- + /*ifa->type = OSPF_IT_PTMP;*/
- + pref_type = OSPF_IT_PTMP;
- - if (ifa->type != old_type)
- + /*if (ifa->type != old_type)
- log(L_WARN "%s: Cannot use interface %s as %s, forcing %s",
- + p->name, iface->name, ospf_it[old_type], ospf_it[ifa->type]);*/
- +
- + if (ifa->type != old_type)
- + log(L_WARN "%s: Probably shouldnt use interface %s as %s, recommended mode is %s",
- p->name, iface->name, ospf_it[old_type], ospf_it[ifa->type]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement