1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- #ifndef DROPBEAR_PACKET_H_
- #define DROPBEAR_PACKET_H_
- #include "includes.h"
- #include "queue.h"
- #include "buffer.h"
- void write_packet(void);
- void read_packet(void);
- void decrypt_packet(void);
- void encrypt_packet(void);
- void writebuf_enqueue(buffer * writebuf);
- void process_packet(void);
- void maybe_flush_reply_queue(void);
- typedef struct PacketType {
- unsigned char type;
- void (*handler)(void);
- } packettype;
- #define PACKET_PADDING_OFF 4
- #define PACKET_PAYLOAD_OFF 5
- #define INIT_READBUF 128
- #endif
|