]> git.proxmox.com Git - mirror_frr.git/blobdiff - bgpd/bgp_ecommunity.h
Merge pull request #5686 from qlyoung/fix-bgp-fqdn-capability-leak
[mirror_frr.git] / bgpd / bgp_ecommunity.h
index 79be4ee4227da4119b95cdaf8cbe522f3be62e3a..ae64f41ca15592b6425857218ac2f0d073e5e69e 100644 (file)
@@ -105,8 +105,6 @@ struct ecommunity_val {
        char val[ECOMMUNITY_SIZE];
 };
 
-#define ecom_length(X)    ((X)->size * ECOMMUNITY_SIZE)
-
 /*
  * Encode BGP Route Target AS:nn.
  */
@@ -190,9 +188,18 @@ extern int ecommunity_fill_pbr_action(struct ecommunity_val *ecom_eval,
 extern void bgp_compute_aggregate_ecommunity(
                                        struct bgp_aggregate *aggregate,
                                        struct ecommunity *ecommunity);
+
+extern void bgp_compute_aggregate_ecommunity_hash(
+                                       struct bgp_aggregate *aggregate,
+                                       struct ecommunity *ecommunity);
+extern void bgp_compute_aggregate_ecommunity_val(
+                                       struct bgp_aggregate *aggregate);
 extern void bgp_remove_ecommunity_from_aggregate(
                                        struct bgp_aggregate *aggregate,
                                        struct ecommunity *ecommunity);
+extern void bgp_remove_ecomm_from_aggregate_hash(
+                                       struct bgp_aggregate *aggregate,
+                                       struct ecommunity *ecommunity);
 extern void bgp_aggr_ecommunity_remove(void *arg);
 
 #endif /* _QUAGGA_BGP_ECOMMUNITY_H */