]> git.proxmox.com Git - mirror_frr.git/blobdiff - zebra/rt_netlink.c
Zebra.h header cleanup (#4444)
[mirror_frr.git] / zebra / rt_netlink.c
index 289ed5a15b147acda0cfe996c384ba967cbeff29..92c78a4cbb144a4a7dbad1b06312ef1024407d2c 100644 (file)
@@ -583,7 +583,7 @@ static int netlink_route_change_read_unicast(struct nlmsghdr *h, ns_id_t ns_id,
                        re->vrf_id = vrf_id;
                        re->table = table;
                        re->nexthop_num = 0;
-                       re->uptime = time(NULL);
+                       re->uptime = monotime(NULL);
                        re->tag = tag;
 
                        for (;;) {
@@ -813,7 +813,7 @@ static int netlink_route_change_read_multicast(struct nlmsghdr *h,
 
                        sprintf(temp, "%s(%d) ", ifp ? ifp->name : "Unknown",
                                oif[count]);
-                       strcat(oif_list, temp);
+                       strlcat(oif_list, temp, sizeof(oif_list));
                }
                struct zebra_vrf *zvrf = zebra_vrf_lookup_by_id(vrf);
                ifp = if_lookup_by_index(iif, vrf);