#ifndef _CRYPTOT_H #define _CRYPTOT_H #define DEFAULT_CIPHER BLOWFISH | ENCRYPT #define DEFAULT_PORT 4666 #define BUFFER_LENGTH 8192 #define PROG_NAME "cryptot" #define VERSION "0.7.0" #define MY_CLOCK CLOCK_REALTIME /* #define _DEBUG_ */ struct cryptot_st{ /* crypto */ char *key; char *buffer; unsigned int blocks; unsigned int size; unsigned int cipher; /* input / output */ int check_accept; int in_fd; int out_fd; char src_ip[4]; char dist_ip[4]; char local_ip[4]; unsigned int src_port; unsigned int dist_port; unsigned int local_port; }; #endif