wsock(sock, "reload\n");
wsock(sock, buf);
int main(int argc, char **argv){	int sock, cmd, k, len;	unsigned char buf[256];	int opt_ind = 0;	long when;		cmd = getopt_long(argc, argv, sopts, lopts, &opt_ind);	switch (cmd)	{		case 'a':			if (!strcmp(optarg, "ax25"))			{				if (argc < optind+3)					usage();				len = sprintf(buf, "add ax25");				for (k = optind; k < argc; k++)					len += sprintf(buf+len, " %s", argv[k]);				sprintf(buf+len, "\n");				sock = open_socket();				wsock(sock, buf);				close(sock);			} else 			if (!strcmp(optarg, "ip"))			{				if (argc < optind+5)					usage();				len = sprintf(buf, "add ip");				for (k = optind; k < argc; k++)					len += sprintf(buf+len, " %s", argv[k]);				sprintf(buf+len, "\n");								sock = open_socket();				wsock(sock, buf);				close(sock);			} else 				usage();			return 0;		case 'd':			if (!strcmp(optarg, "ax25"))			{				if (argc < optind+2)					usage();				sprintf(buf, "del ax25 %s %s\n", argv[optind], argv[optind+1]);								sock = open_socket();				wsock(sock, buf);				close(sock);			} else 			if (!strcmp(optarg, "ip"))			{				if (argc < optind+1)					usage();				sprintf(buf, "del ip %s\n", argv[optind]);				sock = open_socket();				wsock(sock, buf);				close(sock);			} else 				usage();			return 0;		case 'l':			if (!strcmp(optarg, "ax25"))				list_ax25();			else if (!strcmp(optarg, "ip"))				list_ip();			else				usage();			return 0;		case 'e':			when = atoi(optarg);			if (when <= 0)				usage();			sock = open_socket();			sprintf(buf, "expire %ld\n", when);			wsock(sock, buf);			close(sock);			return 0;		case 's':			sock = open_socket();			wsock(sock, "save\n");			close(sock);			return 0;		case 'r':			sock = open_socket();			wsock(sock, "reload\n");			close(sock);			return 0;		case 'q':			sock = open_socket();			wsock(sock, "shutdown\n");			close(sock);			return 0;		case 'V':			Version();			return 0;		case 'v':			printf("ax25rtctl: %s\n", VERSION);			return 0;		case 'x':			debug();		case ':':		case 'h':		case '?':		default:			usage();	}	usage();	return 1;}