Add prefer and noselect options

This commit is contained in:
Miroslav Lichvar
2010-08-25 18:11:52 +02:00
parent 061d497df0
commit f924862e89
11 changed files with 91 additions and 28 deletions

View File

@@ -934,6 +934,9 @@ process_cmd_add_server_or_peer(CMD_Request *msg, char *line)
if (data.params.min_stratum) {
fprintf(stderr, "Option minstratum not supported\n");
break;
} else if (data.params.sel_option != SRC_SelectNormal) {
fprintf(stderr, "Options noselect and prefer not supported\n");
break;
}
msg->data.ntp_source.port = htonl((unsigned long) data.port);