]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/zclient.c
[PtP over ethernet] New peer flag allows much more addressing flexibility
[mirror_frr.git] / lib / zclient.c
index a253af6192380915c13e0afdb12e7ff8c47063a9..09a7d25ee77f1740df179bce35a14683477822c5 100644 (file)
@@ -780,7 +780,11 @@ zebra_interface_address_read (int type, struct stream *s)
        ifc = connected_add_by_prefix(ifp, &p,(memconstant(&d.u.prefix,0,plen) ?
                                              NULL : &d));
        if (ifc != NULL)
-       ifc->flags = ifc_flags;
+        {
+          ifc->flags = ifc_flags;
+          if (ifc->destination)
+            ifc->destination->prefixlen = ifc->address->prefixlen;
+        }
     }
   else
     {