]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Small change for debugging.
authorOndrej Filip <feela@network.cz>
Wed, 23 Feb 2000 23:23:19 +0000 (23:23 +0000)
committerOndrej Filip <feela@network.cz>
Wed, 23 Feb 2000 23:23:19 +0000 (23:23 +0000)
proto/ospf/iface.c

index c240fb75fc97a30a023af06e2b8dcf4c347d903f..0ee5e685560d9d342fd7fcc80ea158c448aae7be 100644 (file)
@@ -177,6 +177,7 @@ u8
 ospf_iface_clasify(struct iface *ifa, struct proto *p)
 {
   /* FIXME: Latter I'll use config - this is incorrect */
+  DBG("%s: Iface flags=%x.\n", p->name, ifa->flags);
   if((ifa->flags & (IF_MULTIACCESS|IF_MULTICAST))==
     (IF_MULTIACCESS|IF_MULTICAST))
   {
@@ -244,7 +245,7 @@ ospf_iface_default(struct ospf_iface *ifa)
   ifa->drid=0;
   ifa->bdrip=ipa_from_u32(0x00000000);
   ifa->bdrid=0;
-  ifa->type=ospf_iface_clasify(ifa->iface, ifa->proto);
+  ifa->type=ospf_iface_clasify(ifa->iface, (struct proto *)ifa->proto);
 }
 
 struct ospf_iface*