]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: Align bgp_damp.h to our standards
authorDonald Sharp <sharpd@nvidia.com>
Thu, 12 May 2022 13:13:40 +0000 (09:13 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Thu, 12 May 2022 14:20:28 +0000 (10:20 -0400)
bgp_damp.h has function declarations that are
not properly aligned with our standard on how
to do so.  Fix.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
bgpd/bgp_damp.h

index 0c70abef84da5a5f9176af5adc7b28eee11e6c0b..f7deea53857a406fba89d91264db383256e2139b 100644 (file)
@@ -132,9 +132,10 @@ struct bgp_damp_config {
 #define REUSE_LIST_SIZE          256
 #define REUSE_ARRAY_SIZE        1024
 
-extern int bgp_damp_enable(struct bgp *, afi_t, safi_t, time_t, unsigned int,
-                          unsigned int, time_t);
-extern int bgp_damp_disable(struct bgp *, afi_t, safi_t);
+extern int bgp_damp_enable(struct bgp *bgp, afi_t afi, safi_t safi, time_t half,
+                          unsigned int reuse, unsigned int suppress,
+                          time_t max);
+extern int bgp_damp_disable(struct bgp *bgp, afi_t afi, safi_t safi);
 extern int bgp_damp_withdraw(struct bgp_path_info *path, struct bgp_dest *dest,
                             afi_t afi, safi_t safi, int attr_change);
 extern int bgp_damp_update(struct bgp_path_info *path, struct bgp_dest *dest,
@@ -142,8 +143,9 @@ extern int bgp_damp_update(struct bgp_path_info *path, struct bgp_dest *dest,
 extern void bgp_damp_info_free(struct bgp_damp_info *path, int withdraw,
                               afi_t afi, safi_t safi);
 extern void bgp_damp_info_clean(afi_t afi, safi_t safi);
-extern int bgp_damp_decay(time_t, int, struct bgp_damp_config *damp);
-extern void bgp_config_write_damp(struct vty *, afi_t afi, safi_t safi);
+extern int bgp_damp_decay(time_t tdiff, int penalty,
+                         struct bgp_damp_config *damp);
+extern void bgp_config_write_damp(struct vty *vty, afi_t afi, safi_t safi);
 extern void bgp_damp_info_vty(struct vty *vty, struct bgp_path_info *path,
                              afi_t afi, safi_t safi, json_object *json_path);
 extern const char *bgp_damp_reuse_time_vty(struct vty *vty,
@@ -151,7 +153,7 @@ extern const char *bgp_damp_reuse_time_vty(struct vty *vty,
                                           char *timebuf, size_t len, afi_t afi,
                                           safi_t safi, bool use_json,
                                           json_object *json);
-extern int bgp_show_dampening_parameters(struct vty *vty, afi_t, safi_t,
-                                        uint16_t);
+extern int bgp_show_dampening_parameters(struct vty *vty, afi_t afi,
+                                        safi_t safi, uint16_t show_flags);
 
 #endif /* _QUAGGA_BGP_DAMP_H */