along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: protocol_misc.c,v 1.1.4.6 2002/09/09 21:25:02 guus Exp $
+ $Id: protocol_misc.c,v 1.1.4.7 2002/09/09 22:33:04 guus Exp $
*/
#include "config.h"
/* Status and error notification routines */
-int send_status(connection_t * c, int statusno, char *statusstring)
+int send_status(connection_t *c, int statusno, char *statusstring)
{
cp();
return send_request(c, "%d %d %s", STATUS, statusno, statusstring);
}
-int status_h(connection_t * c)
+int status_h(connection_t *c)
{
int statusno;
char statusstring[MAX_STRING_SIZE];
return 0;
}
-int send_error(connection_t * c, int err, char *errstring)
+int send_error(connection_t *c, int err, char *errstring)
{
cp();
return send_request(c, "%d %d %s", ERROR, err, errstring);
}
-int error_h(connection_t * c)
+int error_h(connection_t *c)
{
int err;
char errorstring[MAX_STRING_SIZE];
return 0;
}
-int send_termreq(connection_t * c)
+int send_termreq(connection_t *c)
{
cp();
return send_request(c, "%d", TERMREQ);
}
-int termreq_h(connection_t * c)
+int termreq_h(connection_t *c)
{
cp();
return 0;
}
-int send_ping(connection_t * c)
+int send_ping(connection_t *c)
{
cp();
return send_request(c, "%d", PING);
}
-int ping_h(connection_t * c)
+int ping_h(connection_t *c)
{
cp();
return send_pong(c);
}
-int send_pong(connection_t * c)
+int send_pong(connection_t *c)
{
cp();
return send_request(c, "%d", PONG);
}
-int pong_h(connection_t * c)
+int pong_h(connection_t *c)
{
cp();
/* Sending and receiving packets via TCP */
-int send_tcppacket(connection_t * c, vpn_packet_t * packet)
+int send_tcppacket(connection_t *c, vpn_packet_t *packet)
{
int x;
return send_meta(c, packet->data, packet->len);
}
-int tcppacket_h(connection_t * c)
+int tcppacket_h(connection_t *c)
{
short int len;