static int verbose;
static char *init_cmd;
static int once;
+static int restricted;
static char *server_path = PATH_CONTROL_SOCKET;
static int server_fd;
verbose++;
break;
case 'r':
- init_cmd = "restrict";
+ restricted = 1;
break;
default:
usage();
int i;
int len = 0;
- if (init_cmd)
- usage();
-
for (i = optind; i < argc; i++)
len += strlen(argv[i]) + 1;
if (nstate == cstate)
return;
+ if (restricted)
+ {
+ submit_server_command("restrict");
+ restricted = 0;
+ return;
+ }
+
if (init_cmd)
{
/* First transition - client received hello from BIRD