Revision af157fa3 proto/ospf/ospf.h

View differences:

proto/ospf/ospf.h
772 772
#endif
773 773
};
774 774

  
775
#if defined(OSPFv2) && !defined(CONFIG_MC_PROPER_SRC)
776
static inline int
777
ospf_iface_stubby(struct ospf_iface_patt *ip, struct ifa *addr)
778
{
779
  /*
780
   * We cannot properly support multiple OSPF ifaces on real iface
781
   * with multiple prefixes, therefore we force OSPF ifaces with
782
   * non-primary IP prefixes to be stub.
783
   */
784
  return ip->stub || !(addr->flags & IA_PRIMARY);
785
}
786
#else
787
static inline int
788
ospf_iface_stubby(struct ospf_iface_patt *ip, struct ifa *addr UNUSED)
789
{
790
  return ip->stub;
791
}
792
#endif
793

  
775 794
int ospf_import_control(struct proto *p, rte **new, ea_list **attrs,
776 795
			struct linpool *pool);
777 796
struct ea_list *ospf_make_tmp_attrs(struct rte *rt, struct linpool *pool);

Also available in: Unified diff