1
0
mirror of http://galexander.org/git/simplesshd.git synced 2024-11-27 09:48:08 +00:00
simplesshd/jni/config.h
Greg Alexander 2bdd5eaa6d Fix WinSCP problem...reduce the maximum size of a single packet to 128kB
(was 512kB, WinSCP rejects bigger than 256kB).  Leave the window size at
512kB, which is what gives the performance boost.
2020-03-20 22:08:40 -04:00

52 lines
1.2 KiB
C

/* config for dropbear embedded in SimpleSSHD */
#ifndef __CONFIG_H__
#define __CONFIG_H__ 1
#define HAVE_U_INT8_T 1
#define HAVE_U_INT16_T 1
#define HAVE_U_INT32_T 1
#define HAVE_UINT8_T 1
#define HAVE_UINT16_T 1
#define HAVE_UINT32_T 1
#define HAVE_STRUCT_SOCKADDR_STORAGE 1
#define HAVE_STRUCT_IN6_ADDR 1
#define HAVE_STRUCT_SOCKADDR_IN6 1
#define HAVE_STRUCT_ADDRINFO 1
#define HAVE_GETADDRINFO 1
#define HAVE_FREEADDRINFO 1
#define HAVE_GETNAMEINFO 1
#define HAVE_FORK 1
#define HAVE_GAI_STRERROR 1
#define HAVE_BASENAME 1
#define HAVE_NETINET_TCP_H 1
#define HAVE_LIBGEN_H 1
#define USE_DEV_PTMX 1
#undef DISABLE_ZLIB
#define DISABLE_SYSLOG 1
#define DROPBEAR_SERVER 1
#define DBMULTI_dropbear 1
#define DROPBEAR_MULTI 1
#define LOCALOPTIONS_H_EXISTS 1
/* this makes dropbear much faster at receiving files */
#define DEFAULT_RECV_WINDOW (512*1024)
#define RECV_MAX_PAYLOAD_LEN (128*1024)
/* in jni/interface.c: */
extern const char *conf_path;
extern const char *conf_shell;
extern const char *conf_home;
const char *conf_path_file(const char *fn);
extern int conf_rsyncbuffer;
extern const char *conf_env;
extern const char *conf_lib;
#endif /* __CONFIG_H__ */