Lines Matching +defs:add +defs:to +defs:list

2  * ntpq-subs.c - subroutines which are called to perform ntpq commands.
88 "save ntpd configuration to file, . for current config file"},
91 "print list of association ID's and statuses for the server's peers" },
94 "print list of associations returned by last associations command" },
97 "print list of associations including all client information" },
100 "print last obtained list of associations, including client information" },
103 "add variables to the variable list or change their values" },
106 "remove variables from the variable list" },
109 "remove all variables from the variable list" },
112 "print variables on the variable list" },
115 "read the system or peer variables included in the variable list" },
118 "read the system or peer variables included in the variable list" },
121 "write the system or peer variables included in the variable list" },
133 "read the peer variables in the variable list for multiple peers" },
136 "read the peer variables in the variable list for multiple peers" },
145 "read the clock variables included in the variable list" },
148 "read the clock variables included in the variable list" },
160 "obtain and print a list of the server's peers [IP version]" },
163 "obtain and print a list of the server's peers and their assocIDs [IP version]" },
166 "obtain and print a list of all peers and clients [IP version]" },
169 "print peer list the old way, with dstadr shown rather than refid [IP version]" },
172 "obtain and print a list of all peers and clients showing dstadr [IP version]" },
175 "send a remote configuration command to ntpd" },
181 "display the list of most recently seen source addresses, tags mincount=... resall=0x... resany=0x..." },
187 "show ntpd access control list" },
215 * Variable list data space
218 #define MAXLIST 128 /* maximum variables in list */
427 * checkassocid - return the association ID, checking to see if it is valid
452 * return a pointer to it. Otherwise, if the list has
453 * slots available, return the pointer to the first free
458 struct varlist *list,
464 for (vl = list; vl < list + MAXLIST && vl->name != NULL; vl++)
467 if (vl < list + MAXLIST)
475 * doaddvlist - add variable(s) to the variable list
493 xprintf(stderr, "Variable list full\n");
511 * dormvlist - remove variable(s) from the variable list
547 * doclearvlist - clear a variable list
568 * makequerydata - form a data buffer to be included with a query
614 * doquerylist - send a message including variables in a list
639 * doprintvlist - print the variables on a list
650 xprintf(fp, "No variables on list\n");
663 * addvars - add variables to the variable list
677 * rmvars - remove variables from the variable list
691 * clearvars - clear the variable list
705 * showvars - show variables on the variable list
719 * dolist - send a request with the given list of variables
772 * readlist - send a read variables request with the variables on the list
801 * writelist - send a write variables request with the variables on the list
932 * clocklist - send a clock variables request with the variables on the list
992 int * to,
1021 "***Association ID %u not found in list\n",
1028 *to = ind[1];
1030 *to = ind[0];
1049 int to;
1052 &from, &to, fp))
1055 for (i = from; i <= to; i++) {
1077 int to;
1082 &from, &to, fp))
1093 for (i = from; i <= to; i++) {
1107 * dogetassoc - query the host for its list of associations
1170 * printassoc - print the current list of associations
1192 (void) xprintf(fp, "No association ID's in list\n");
1375 * associations - get, record and print a list of associations
1390 * lassociations - get, record and print a long list of associations
1405 * passociations - print the association list
1419 * lpassociations - print the long association list
1433 * saveconfig - dump ntp server configuration to server file
1567 /* Ok, this amounts to infinity... */
1603 * A list of variables required by the peers command
1664 * Decode an incoming data buffer and print a line in the peer list
1712 /* [Bug 3482] formally whenbuf & pollbuf should be able to hold
1788 /* no need to check drefid == REFID_HASH */
1806 * restrict refid to
2286 * config - send a configuration command to a remote host
2350 * Longer lines will lead to unpredictable results.
2354 * Pearly: There are a few places where 'size_t' is cast to 'int' based
2453 * Retrieve a nonce specific to this client to demonstrate to
2454 * ntpd that we're capable of receiving responses to our source
2455 * IP address, and thereby unlikely to be forging the source.
2486 * add_mru Add and entry to mru list, hash table, and allocate
2492 mru *add
2500 hash = NTP_HASH_ADDR(&add->addr);
2503 if (SOCK_EQ(&mon->addr, &add->addr))
2506 if (!L_ISGEQ(&add->first, &mon->first)) {
2509 sptoa(&add->addr), add->last.l_ui,
2510 add->last.l_uf, mon->last.l_ui,
2521 LINK_DLIST(mru_list, add, mlink);
2522 LINK_SLIST(hash_table[hash], add, hlink);
2524 add->last.l_ui, add->last.l_uf, add->count,
2525 (int)add->mode, (int)add->ver, (u_int)add->rs,
2526 add->first.l_ui, add->first.l_uf, sptoa(&add->addr)));
2538 /* MGOT macro is specific to collect_mru_list() */
2644 * toss them from our list and try again.
2648 "no overlap between %d prior entries and server MRU list\n",
2655 "tossing prior entry %s to resync\n",
2671 "MRU list is limited to less than about 16 seconds' of\n"
2672 "entries. See the 'mru' ntp.conf directive to adjust.\n");
2689 "Reverted to row limit from fragments limit.\n");
2696 "Row limit reduced to %d following CERR_BADVALUE.\n",
2703 * half to recover from lost response fragments.
2709 "Frag limit reduced to %d following incomplete response.\n",
2715 "Row limit reduced to %d following incomplete response.\n",
2724 * output for mrulist. A better approach would be to
2725 * dump similar output after the list is collected by
2727 * cheap approach has indexes resetting to zero for
2908 "Displaying partial client list.\n");
2926 * Snooze for a bit between queries to let ntpd catch
2942 * to a maximum of 3 * MAXFRAGS (the most packets ntpq
3156 * mrulist - ntpq's mrulist command to fetch an arbitrarily large Most
3157 * Recently Used (seen) remote address list from ntpd.
3159 * Similar to ntpdc's monlist command, but not limited to a single
3160 * request/response, and thereby not limited to a few hundred remote
3164 * CTL_OP_READ_MRU is designed to be used.
3174 * to lstint.
3227 /* these are passed intact to ntpd */
3245 /* transform to resany=... */
3291 "mru_count %u should match MRU list depth %ld.\n",
4106 VDC_INIT("timer_xmts", "calls to transmit: ", NTP_STR),