Improve the SLIP driver: allow dynamic creation of SLIP interfaces.
[tripe] / peer.c
diff --git a/peer.c b/peer.c
index 1469a3a..15243b7 100644 (file)
--- a/peer.c
+++ b/peer.c
@@ -80,8 +80,10 @@ static void p_read(int fd, unsigned mode, void *v)
   return;
 
 found:
-  T( trace(T_PEER, "peer: packet received from `%s'", p->name);
-     trace_block(T_PACKET, "peer: packet contents", buf_i, n); )
+  IF_TRACING(T_PEER, {
+    trace(T_PEER, "peer: packet received from `%s'", p->name);
+    trace_block(T_PACKET, "peer: packet contents", buf_i, n);
+  })
 
   /* --- Pick the packet apart --- */
 
@@ -346,6 +348,7 @@ peer *p_create(const char *name, struct sockaddr *sa, size_t sz)
       a_notify("ADD %s UNKNOWN", name);
       break;
   }
+  a_notify("KXSTART %s", name);                /* Couldn't tell anyone before */
   return (p);
 
 tidy_1: