File: dump_socksfc.c

package info (click to toggle)
socks4-server 4.3.beta2-9
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,532 kB
  • ctags: 1,777
  • sloc: ansic: 19,309; makefile: 400; sh: 69
file content (26 lines) | stat: -rw-r--r-- 464 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* dump_socksfc */

#include <sys/types.h>
#include <string.h>
#include <stdio.h>
#include <syslog.h>
#include <netinet/in.h>
#include "socks.h"

/* output sent to stderr */

main(argc, argv)
int argc;
char **argv;
{
	int useSyslog = 0;
	struct config *cfAddr = NULL;
	int Ncf = 0;
	char *cfstrings = NULL;
	char *file = SOCKS_FC;

	if (argc == 2)
		file = *++argv;
	socks_rdfz(file, &cfAddr, &Ncf, &cfstrings, useSyslog);
	socks_dumpcf(cfAddr, Ncf, useSyslog);
}