chiark / gitweb /
Insert a newline to improve readability.
[tripe] / peer.c
diff --git a/peer.c b/peer.c
index f60f887fc6e247a5778a3efa4e81e30360b25b27..e1362e9be2a0f81679a873df760d1db8ec4f2f37 100644 (file)
--- a/peer.c
+++ b/peer.c
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: peer.c,v 1.5 2001/03/03 11:15:19 mdw Exp $
+ * $Id: peer.c,v 1.7 2003/04/15 14:12:05 mdw Exp $
  *
  * Communication with the peer
  *
 /*----- Revision history --------------------------------------------------* 
  *
  * $Log: peer.c,v $
+ * Revision 1.7  2003/04/15 14:12:05  mdw
+ * Insert a newline to improve readability.
+ *
+ * Revision 1.6  2001/06/19 22:07:59  mdw
+ * Use magic number for packet size.
+ *
  * Revision 1.5  2001/03/03 11:15:19  mdw
  * Set the socket send and receive buffers to maximum.  At least this way,
  * we won't drop large packets on the floor.  If the administrator wants to
@@ -207,6 +213,7 @@ void p_txend(peer *p)
 void p_tun(peer *p, buf *b)
 {
   buf *bb = p_txstart(p, MSG_PACKET);
+
   TIMER;
   if (ksl_encrypt(&p->ks, b, bb))
     kx_start(&p->kx);
@@ -280,7 +287,7 @@ void p_init(unsigned port)
 {
   int fd;
   struct sockaddr_in sin;
-  int len = 65536;
+  int len = PKBUFSZ;
 
   /* --- Note on socket buffer sizes --- *
    *