X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Freconnect.h;h=d316448f701fa8e64c7d77f15eddf8b558960cda;hb=e868fb3d322f5c46385f1fc6db5bb1ab33f90305;hp=418f3e8755f7b7e2fccad78dab917456abceb941;hpb=36a7b32d790f2cee735520060a9b6221b7ae25ef;p=openvswitch diff --git a/lib/reconnect.h b/lib/reconnect.h index 418f3e87..d316448f 100644 --- a/lib/reconnect.h +++ b/lib/reconnect.h @@ -40,6 +40,11 @@ void reconnect_set_quiet(struct reconnect *, bool quiet); const char *reconnect_get_name(const struct reconnect *); void reconnect_set_name(struct reconnect *, const char *name); +/* Defaults, all in msecs. */ +#define RECONNECT_DEFAULT_MIN_BACKOFF 1000 +#define RECONNECT_DEFAULT_MAX_BACKOFF 8000 +#define RECONNECT_DEFAULT_PROBE_INTERVAL 5000 + int reconnect_get_min_backoff(const struct reconnect *); int reconnect_get_max_backoff(const struct reconnect *); int reconnect_get_probe_interval(const struct reconnect *);