]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Some more verbose warnings.
authorOndrej Zajicek <santiago@crfreenet.org>
Sun, 22 Jan 2012 10:03:30 +0000 (11:03 +0100)
committerOndrej Zajicek <santiago@crfreenet.org>
Sun, 22 Jan 2012 10:03:30 +0000 (11:03 +0100)
proto/ospf/ospf.h
proto/ospf/packet.c

index 60a34fba505441f03e7144110a6820dcc40fc65b..d6961519ddb3a1ee03d27830904c0ca2435bffed 100644 (file)
@@ -177,7 +177,7 @@ struct ospf_area_config
 struct ospf_iface
 {
   node n;
-  struct iface *iface;         /* Nest's iface */
+  struct iface *iface;         /* Nest's iface, non-NULL (unless type OSPF_IT_VLINK) */
   struct ifa *addr;            /* IP prefix associated with that OSPF iface */
   struct ospf_area *oa;
   struct ospf_iface_patt *cf;
index df67d5a0a46e9c0f4d32a80c10a3a6f50cb337e2..7a26967f76ce8cf9fb0ac7c8f842102257f5301a 100644 (file)
@@ -489,17 +489,17 @@ ospf_rx_hook(sock *sk, int size)
 void
 ospf_tx_hook(sock * sk)
 {
-//  struct ospf_iface *ifa= (struct ospf_iface *) (sk->data);
+  struct ospf_iface *ifa= (struct ospf_iface *) (sk->data);
 //  struct proto *p = (struct proto *) (ifa->oa->po);
-  log(L_ERR "OSPF: TX_Hook called");
+  log(L_ERR "OSPF: TX hook called on %s", ifa->iface->name);
 }
 
 void
 ospf_err_hook(sock * sk, int err)
 {
-//  struct ospf_iface *ifa= (struct ospf_iface *) (sk->data);
+  struct ospf_iface *ifa= (struct ospf_iface *) (sk->data);
 //  struct proto *p = (struct proto *) (ifa->oa->po);
-  log(L_ERR "OSPF: Socket error: %M", err);
+  log(L_ERR "OSPF: Socket error on %s: %M", ifa->iface->name, err);
 }
 
 void