diff packet.h @ 22:c1e5d9195402

merge of abac2150ee4f4031a98016241fbd136d24fed127 and ffa047425729e478a5b49b1ab0f8ec71c08a1421
author Matt Johnston <matt@ucc.asn.au>
date Wed, 23 Jun 2004 07:14:16 +0000
parents fe6bca95afa7
children 4cab61369879
line wrap: on
line diff
--- a/packet.h	Mon Jun 07 11:36:07 2004 +0000
+++ b/packet.h	Wed Jun 23 07:14:16 2004 +0000
@@ -32,9 +32,13 @@
 void read_packet();
 void decrypt_packet();
 void encrypt_packet();
-void recv_unimplemented();
+
+void process_packet();
 
-void svr_process_packet();
+typedef struct PacketType {
+	unsigned char type; /* SSH_MSG_FOO */
+	void (*handler)();
+} packettype;
 
 #define PACKET_PADDING_OFF 4
 #define PACKET_PAYLOAD_OFF 5