This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
magicka/utils/magiftpd/magiftpd.h

34 lines
608 B
C
Raw Normal View History

#ifndef __MAGIFTPD_H
#define __MAGIFTPD_H
struct ftpclient {
int fd;
int data_socket;
char current_path[PATH_MAX];
2017-04-04 23:04:06 +00:00
char data_ip[INET6_ADDRSTRLEN];
int data_port;
int type;
2017-04-04 23:04:06 +00:00
char ip[INET6_ADDRSTRLEN];
char hostip[INET6_ADDRSTRLEN];
char name[16];
char password[32];
int data_srv_socket;
int status;
2017-03-21 12:18:51 +00:00
int seclevel;
2018-01-19 08:28:22 +00:00
int ipver;
};
struct ftpserver {
int port;
char *fileroot;
char *userdb;
2017-03-21 12:18:51 +00:00
char *upload_folder;
int upload_seclevel;
2017-04-04 21:55:35 +00:00
int min_passive_port;
int max_passive_port;
int last_passive_port;
2018-01-19 08:28:22 +00:00
int ipv6;
};
#endif