diff options
Diffstat (limited to 'src/vat/main.c')
-rw-r--r-- | src/vat/main.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/vat/main.c b/src/vat/main.c index 8a7ed6331f6..aaedf6c450b 100644 --- a/src/vat/main.c +++ b/src/vat/main.c @@ -318,6 +318,26 @@ vat_find_plugin_path () vat_plugin_path = (char *) s; } +static void +load_features (void) +{ + vat_registered_features_t *f; + vat_main_t *vam = &vat_main; + clib_error_t *error; + + f = vam->feature_function_registrations; + + while (f) + { + error = f->function (vam); + if (error) + { + clib_warning ("INIT FAILED"); + } + f = f->next; + } +} + int main (int argc, char **argv) { @@ -422,6 +442,8 @@ main (int argc, char **argv) vec_validate (vam->inbuf, 4096); + load_features (); + vam->current_file = (u8 *) "plugin-init"; vat_plugin_init (vam); |