Lines Matching defs:table
45 int kill_srcnodes(struct relayd *, struct table *);
77 fatalx("%s: table count modified", __func__);
135 sync_table(struct relayd *env, struct rdr *rdr, struct table *table)
147 if (table == NULL)
150 if (table->up == 0) {
155 if ((addlist = calloc(table->up, sizeof(*addlist))) == NULL)
160 io.pfrio_size = table->up;
175 TAILQ_FOREACH(host, &table->hosts, entry) {
200 if (i != table->up)
206 cnt = kill_srcnodes(env, table);
210 log_info("table %s: %d added, %d deleted, "
220 kill_srcnodes(struct relayd *env, struct table *table)
234 TAILQ_FOREACH(host, &table->hosts, entry) {
288 fatal("%s: cannot flush table addresses", __func__);
294 fatal("%s: cannot flush table stats", __func__);
296 log_debug("%s: flushed table %s", __func__, rdr->conf.name);
340 struct table *t = rdr->table;
414 rio.rule.rtableid = -1; /* stay in the main routing table */
453 fatal("%s: table name too long", __func__);
456 rdr->table->conf.flags & F_PORT) {
458 ntohs(rdr->table->conf.port);
616 check_table(struct relayd *env, struct rdr *rdr, struct table *table)
621 if (table == NULL)
640 fatal("%s: cannot get table stats for %s@%s", __func__,