]> git.proxmox.com Git - mirror_frr.git/blobdiff - vtysh/vtysh.c
pbrd: strcpy -> strlcpy
[mirror_frr.git] / vtysh / vtysh.c
index 24effa70472460f9ac90225471d7bfebf503c743..a0b119c3ebaf23679efac8f33af7d252667dd505 100644 (file)
@@ -137,6 +137,7 @@ struct vtysh_client vtysh_client[] = {
        {.fd = -1, .name = "pbrd", .flag = VTYSH_PBRD, .next = NULL},
        {.fd = -1, .name = "staticd", .flag = VTYSH_STATICD, .next = NULL},
        {.fd = -1, .name = "bfdd", .flag = VTYSH_BFDD, .next = NULL},
+       {.fd = -1, .name = "vrrpd", .flag = VTYSH_VRRPD, .next = NULL},
 };
 
 enum vtysh_write_integrated vtysh_write_integrated =
@@ -3346,7 +3347,7 @@ static void vtysh_update_all_instances(struct vtysh_client *head_client)
        dir = opendir(vtydir);
        if (dir) {
                while ((file = readdir(dir)) != NULL) {
-                       if (begins_with(file->d_name, "ospfd-")
+                       if (frrstr_startswith(file->d_name, "ospfd-")
                            && ends_with(file->d_name, ".vty")) {
                                if (n == MAXIMUM_INSTANCES) {
                                        fprintf(stderr,