]> git.puffer.fish Git - mirror/frr.git/commitdiff
Merge pull request #7636 from AnuradhaKaruppiah/type-0-esi
authorPatrick Ruddy <pat@voltanet.io>
Tue, 15 Dec 2020 17:33:46 +0000 (17:33 +0000)
committerGitHub <noreply@github.com>
Tue, 15 Dec 2020 17:33:46 +0000 (17:33 +0000)
zebra: support for type-0 ESI

1  2 
zebra/zebra_evpn_mh.c

index bda2708f9f95936217d31358c6cb42a78f544936,0da25b4a7450904cc30759a80faa9e24bcd53e0c..a79e0e969524807521ce150c67f468459c319c5b
@@@ -2427,9 -2184,11 +2458,10 @@@ void zebra_evpn_if_es_print(struct vty 
        char buf[ETHER_ADDR_STRLEN];
        char mh_buf[80];
        bool vty_print = false;
+       char esi_buf[ESI_STR_LEN];
  
        mh_buf[0] = '\0';
 -      snprintf(mh_buf + strlen(mh_buf), sizeof(mh_buf) - strlen(mh_buf),
 -               "  EVPN-MH:");
 +      strlcat(mh_buf, "  EVPN-MH:", sizeof(mh_buf));
        if (zif->es_info.lid || !is_zero_mac(&zif->es_info.sysmac)) {
                vty_print = true;
                snprintf(