port: change 'announce_span' into a macro.
This probably should not have been a variable in the first place. Signed-off-by: Richard Cochran <richardcochran@gmail.com>master
parent
8efb623f12
commit
54f45063df
1
ds.h
1
ds.h
|
@ -125,7 +125,6 @@ struct portDS {
|
|||
#define FRI_ASAP (-128)
|
||||
|
||||
struct port_defaults {
|
||||
int announce_span;
|
||||
int path_trace_enabled;
|
||||
int follow_up_info;
|
||||
int freq_est_interval; /*log seconds*/
|
||||
|
|
3
port.c
3
port.c
|
@ -39,6 +39,7 @@
|
|||
#include "util.h"
|
||||
|
||||
#define ALLOWED_LOST_RESPONSES 3
|
||||
#define ANNOUNCE_SPAN 1
|
||||
|
||||
enum syfu_state {
|
||||
SF_EMPTY,
|
||||
|
@ -950,7 +951,7 @@ static int port_set_announce_tmo(struct port *p)
|
|||
{
|
||||
return set_tmo_random(p->fda.fd[FD_ANNOUNCE_TIMER],
|
||||
p->announceReceiptTimeout,
|
||||
p->pod.announce_span, p->logAnnounceInterval);
|
||||
ANNOUNCE_SPAN, p->logAnnounceInterval);
|
||||
}
|
||||
|
||||
static int port_set_delay_tmo(struct port *p)
|
||||
|
|
Loading…
Reference in New Issue