/* -*-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
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);
{
int fd;
struct sockaddr_in sin;
- int len = 65536;
+ int len = PKBUFSZ;
/* --- Note on socket buffer sizes --- *
*