diff options
author | Maria Matejka <mq@ucw.cz> | 2022-09-01 14:21:56 +0200 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2022-09-01 17:44:46 +0200 |
commit | 397fec4741b40f61d06a467b4110aad7e996485c (patch) | |
tree | 4bd33355175e42df9e3b7dee5517c19d4d6e337d /nest/rt.h | |
parent | 34912b029b161cbbed44057dfa913669ccb087eb (diff) |
Default tables are not created unless actually used.
This allows for setting default table values at the beginning of config
file before "master4" and "master6" tables are initialized.
Diffstat (limited to 'nest/rt.h')
-rw-r--r-- | nest/rt.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -481,6 +481,8 @@ void rt_reload_channel_abort(struct channel *c); void rt_refeed_channel(struct channel *c); void rt_prune_sync(rtable *t, int all); struct rtable_config *rt_new_table(struct symbol *s, uint addr_type); +void rt_new_default_table(struct symbol *s); +struct rtable_config *rt_get_default_table(struct config *cf, uint addr_type); static inline int rt_is_ip(rtable *tab) { return (tab->addr_type == NET_IP4) || (tab->addr_type == NET_IP6); } |