Loading tests/server/resolve.c +1 −1 Original line number Diff line number Diff line Loading @@ -61,7 +61,7 @@ /* include memdebug.h last */ #include "memdebug.h" char use_ipv6=FALSE; static char use_ipv6=FALSE; const char *serverlogfile=""; /* for a util.c function we don't use */ Loading tests/server/sockfilt.c +4 −4 Original line number Diff line number Diff line Loading @@ -121,10 +121,10 @@ const char *serverlogfile = DEFAULT_LOGFILE; bool verbose = FALSE; bool use_ipv6 = FALSE; unsigned short port = DEFAULT_PORT; unsigned short connectport = 0; /* if non-zero, we activate this mode */ static bool verbose = FALSE; static bool use_ipv6 = FALSE; static unsigned short port = DEFAULT_PORT; static unsigned short connectport = 0; /* if non-zero, we activate this mode */ enum sockmode { PASSIVE_LISTEN, /* as a server waiting for connections */ Loading tests/server/sws.c +6 −6 Original line number Diff line number Diff line Loading @@ -74,11 +74,11 @@ #define REQBUFSIZ 150000 #define REQBUFSIZ_TXT "149999" long prevtestno=-1; /* previous test number we served */ long prevpartno=-1; /* previous part number we served */ bool prevbounce=FALSE; /* instructs the server to increase the part number for a test in case the identical testno+partno request shows up again */ static long prevtestno=-1; /* previous test number we served */ static long prevpartno=-1; /* previous part number we served */ static bool prevbounce=FALSE; /* instructs the server to increase the part number for a test in case the identical testno+partno request shows up again */ #define RCMD_NORMALREQ 0 /* default request, use the tests file normally */ #define RCMD_IDLE 1 /* told to sit idle */ Loading Loading @@ -858,7 +858,7 @@ static int send_doc(curl_socket_t sock, struct httprequest *req) return 0; } bool use_ipv6=FALSE; static bool use_ipv6=FALSE; int main(int argc, char *argv[]) { Loading tests/server/tftpd.c +21 −19 Original line number Diff line number Diff line Loading @@ -118,7 +118,16 @@ static void mysignal(int, void (*func)(int)); #define PKTSIZE SEGSIZE+4 struct formats; struct formats { const char *f_mode; int f_convert; }; static struct formats formata[] = { { "netascii", 1 }, { "octet", 0 }, { NULL, 0 } }; static int tftp(struct testcase *test, struct tftphdr *tp, ssize_t size); static void nak(int error); static void sendtftp(struct testcase *test, struct formats *pf); Loading @@ -137,7 +146,8 @@ static socklen_t fromlen; struct bf { int counter; /* size of data in buffer, or flag */ char buf[PKTSIZE]; /* room for data packet */ } bfs[2]; }; static struct bf bfs[2]; /* Values for bf.counter */ #define BF_ALLOC -3 /* alloc'd but not yet filled */ Loading @@ -148,8 +158,8 @@ static int nextone; /* index of next buffer to use */ static int current; /* index of buffer in use */ /* control flags for crlf conversions */ int newline = 0; /* fillbuf: in middle of newline expansion */ int prevchar = -1; /* putbuf: previous char (cr check) */ static int newline = 0; /* fillbuf: in middle of newline expansion */ static int prevchar = -1; /* putbuf: previous char (cr check) */ static void read_ahead(struct testcase *test, int convert /* if true, convert to ascii */); Loading Loading @@ -397,7 +407,7 @@ const char *serverlogfile = DEFAULT_LOGFILE; #define REQUEST_DUMP "log/server.input" char use_ipv6=FALSE; static char use_ipv6=FALSE; int main(int argc, char **argv) { Loading Loading @@ -561,15 +571,6 @@ int main(int argc, char **argv) return result; } struct formats { const char *f_mode; int f_convert; } formats[] = { { "netascii", 1 }, { "octet", 0 }, { NULL, 0 } }; /* * Handle initial connection protocol. */ Loading Loading @@ -623,7 +624,7 @@ again: fprintf(server, "mode: %s\n", mode); fclose(server); for (pf = formats; pf->f_mode; pf++) for (pf = formata; pf->f_mode; pf++) if (strcmp(pf->f_mode, mode) == 0) break; if (!pf->f_mode) { Loading Loading @@ -734,9 +735,9 @@ static int validate_access(struct testcase *test, return 0; } int timeout; static int timeout; #ifdef HAVE_SIGSETJMP sigjmp_buf timeoutbuf; static sigjmp_buf timeoutbuf; #endif static void timer(int signum) Loading Loading @@ -919,7 +920,8 @@ abort: struct errmsg { int e_code; const char *e_msg; } errmsgs[] = { }; static struct errmsg errmsgs[] = { { EUNDEF, "Undefined error code" }, { ENOTFOUND, "File not found" }, { EACCESS, "Access violation" }, Loading Loading
tests/server/resolve.c +1 −1 Original line number Diff line number Diff line Loading @@ -61,7 +61,7 @@ /* include memdebug.h last */ #include "memdebug.h" char use_ipv6=FALSE; static char use_ipv6=FALSE; const char *serverlogfile=""; /* for a util.c function we don't use */ Loading
tests/server/sockfilt.c +4 −4 Original line number Diff line number Diff line Loading @@ -121,10 +121,10 @@ const char *serverlogfile = DEFAULT_LOGFILE; bool verbose = FALSE; bool use_ipv6 = FALSE; unsigned short port = DEFAULT_PORT; unsigned short connectport = 0; /* if non-zero, we activate this mode */ static bool verbose = FALSE; static bool use_ipv6 = FALSE; static unsigned short port = DEFAULT_PORT; static unsigned short connectport = 0; /* if non-zero, we activate this mode */ enum sockmode { PASSIVE_LISTEN, /* as a server waiting for connections */ Loading
tests/server/sws.c +6 −6 Original line number Diff line number Diff line Loading @@ -74,11 +74,11 @@ #define REQBUFSIZ 150000 #define REQBUFSIZ_TXT "149999" long prevtestno=-1; /* previous test number we served */ long prevpartno=-1; /* previous part number we served */ bool prevbounce=FALSE; /* instructs the server to increase the part number for a test in case the identical testno+partno request shows up again */ static long prevtestno=-1; /* previous test number we served */ static long prevpartno=-1; /* previous part number we served */ static bool prevbounce=FALSE; /* instructs the server to increase the part number for a test in case the identical testno+partno request shows up again */ #define RCMD_NORMALREQ 0 /* default request, use the tests file normally */ #define RCMD_IDLE 1 /* told to sit idle */ Loading Loading @@ -858,7 +858,7 @@ static int send_doc(curl_socket_t sock, struct httprequest *req) return 0; } bool use_ipv6=FALSE; static bool use_ipv6=FALSE; int main(int argc, char *argv[]) { Loading
tests/server/tftpd.c +21 −19 Original line number Diff line number Diff line Loading @@ -118,7 +118,16 @@ static void mysignal(int, void (*func)(int)); #define PKTSIZE SEGSIZE+4 struct formats; struct formats { const char *f_mode; int f_convert; }; static struct formats formata[] = { { "netascii", 1 }, { "octet", 0 }, { NULL, 0 } }; static int tftp(struct testcase *test, struct tftphdr *tp, ssize_t size); static void nak(int error); static void sendtftp(struct testcase *test, struct formats *pf); Loading @@ -137,7 +146,8 @@ static socklen_t fromlen; struct bf { int counter; /* size of data in buffer, or flag */ char buf[PKTSIZE]; /* room for data packet */ } bfs[2]; }; static struct bf bfs[2]; /* Values for bf.counter */ #define BF_ALLOC -3 /* alloc'd but not yet filled */ Loading @@ -148,8 +158,8 @@ static int nextone; /* index of next buffer to use */ static int current; /* index of buffer in use */ /* control flags for crlf conversions */ int newline = 0; /* fillbuf: in middle of newline expansion */ int prevchar = -1; /* putbuf: previous char (cr check) */ static int newline = 0; /* fillbuf: in middle of newline expansion */ static int prevchar = -1; /* putbuf: previous char (cr check) */ static void read_ahead(struct testcase *test, int convert /* if true, convert to ascii */); Loading Loading @@ -397,7 +407,7 @@ const char *serverlogfile = DEFAULT_LOGFILE; #define REQUEST_DUMP "log/server.input" char use_ipv6=FALSE; static char use_ipv6=FALSE; int main(int argc, char **argv) { Loading Loading @@ -561,15 +571,6 @@ int main(int argc, char **argv) return result; } struct formats { const char *f_mode; int f_convert; } formats[] = { { "netascii", 1 }, { "octet", 0 }, { NULL, 0 } }; /* * Handle initial connection protocol. */ Loading Loading @@ -623,7 +624,7 @@ again: fprintf(server, "mode: %s\n", mode); fclose(server); for (pf = formats; pf->f_mode; pf++) for (pf = formata; pf->f_mode; pf++) if (strcmp(pf->f_mode, mode) == 0) break; if (!pf->f_mode) { Loading Loading @@ -734,9 +735,9 @@ static int validate_access(struct testcase *test, return 0; } int timeout; static int timeout; #ifdef HAVE_SIGSETJMP sigjmp_buf timeoutbuf; static sigjmp_buf timeoutbuf; #endif static void timer(int signum) Loading Loading @@ -919,7 +920,8 @@ abort: struct errmsg { int e_code; const char *e_msg; } errmsgs[] = { }; static struct errmsg errmsgs[] = { { EUNDEF, "Undefined error code" }, { ENOTFOUND, "File not found" }, { EACCESS, "Access violation" }, Loading