summaryrefslogtreecommitdiff
path: root/pptpd-1.3.3/ctrlpacket.h
diff options
context:
space:
mode:
Diffstat (limited to 'pptpd-1.3.3/ctrlpacket.h')
-rw-r--r--pptpd-1.3.3/ctrlpacket.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/pptpd-1.3.3/ctrlpacket.h b/pptpd-1.3.3/ctrlpacket.h
new file mode 100644
index 00000000..39c2858c
--- /dev/null
+++ b/pptpd-1.3.3/ctrlpacket.h
@@ -0,0 +1,18 @@
+/*
+ * ctrlpacket.h
+ *
+ * Functions to parse and send pptp control packets.
+ *
+ * $Id: ctrlpacket.h,v 1.1.1.1 2002/06/21 08:51:58 fenix_nl Exp $
+ */
+
+#ifndef _PPTPD_CTRLPACKET_H
+#define _PPTPD_CTRLPACKET_H
+
+int read_pptp_packet(int clientFd, unsigned char *packet, unsigned char *rply_packet, ssize_t * rply_size);
+size_t send_pptp_packet(int clientFd, unsigned char *packet, size_t packet_size);
+void make_echo_req_packet(unsigned char *rply_packet, ssize_t * rply_size, u_int32_t echo_id);
+void make_call_admin_shutdown(unsigned char *rply_packet, ssize_t * rply_size);
+void make_stop_ctrl_req(unsigned char *rply_packet, ssize_t * rply_size);
+
+#endif /* !_PPTPD_CTRLPACKET_H */