Lines Matching defs:tb
246 int fib_table_lookup(struct fib_table *tb,
251 struct fn_hash *t = (struct fn_hash *)tb->tb_data;
278 void fib_table_select_default(struct fib_table *tb,
286 struct fn_hash *t = (struct fn_hash *)tb->tb_data;
318 &last_idx, tb->tb_default)) {
320 tb->tb_default = order;
329 tb->tb_default = -1;
334 tb->tb_default)) {
336 tb->tb_default = order;
342 tb->tb_default = last_idx;
370 int fib_table_insert(struct fib_table *tb, struct fib_config *cfg)
372 struct fn_hash *table = (struct fn_hash *) tb->tb_data;
476 rtmsg_fib(RTM_NEWROUTE, key, fa, cfg->fc_dst_len, tb->tb_id,
537 rtmsg_fib(RTM_NEWROUTE, key, new_fa, cfg->fc_dst_len, tb->tb_id,
548 int fib_table_delete(struct fib_table *tb, struct fib_config *cfg)
550 struct fn_hash *table = (struct fn_hash *)tb->tb_data;
603 tb->tb_id, &cfg->fc_nlinfo, 0);
665 int fib_table_flush(struct fib_table *tb)
667 struct fn_hash *table = (struct fn_hash *) tb->tb_data;
683 struct fib_table *tb,
703 tb->tb_id,
724 struct fib_table *tb,
735 if (fn_hash_dump_bucket(skb, cb, tb, fz, &fz->fz_hash[h]) < 0) {
746 int fib_table_dump(struct fib_table *tb, struct sk_buff *skb,
751 struct fn_hash *table = (struct fn_hash *)tb->tb_data;
757 if (fn_hash_dump_zone(skb, cb, tb, fz) < 0) {
782 struct fib_table *tb;
784 tb = kmalloc(sizeof(struct fib_table) + sizeof(struct fn_hash),
786 if (tb == NULL)
789 tb->tb_id = id;
790 tb->tb_default = -1;
792 memset(tb->tb_data, 0, sizeof(struct fn_hash));
793 return tb;