Previously we set a few timers to expire at a time_t of 0, i.e.
immediately. But if the system date is set incorrectly to a date
before 1970, then these timers will essentially never expire.
Set them to expire at TIME_MIN instead.
memset(sw, 0, sizeof *sw);
sw->max_idle = max_idle;
sw->datapath_id = 0;
- sw->last_features_request = 0;
+ sw->last_features_request = time(0) - 1;
sw->ml = learn_macs ? mac_learning_create() : NULL;
send_features_request(sw, rconn);
return sw;
rc->vconn = vconn;
queue_init(&rc->txq);
rc->txq_limit = txq_limit;
- rc->backoff_deadline = 0;
+ rc->backoff_deadline = time(0);
rc->backoff = 0;
rc->last_connected = time(0);
rc->probe_interval = (probe_interval