rtt.h (269257) | rtt.h (285206) |
---|---|
1/* 2 * util/rtt.h - UDP round trip time estimator for resend timeouts. 3 * 4 * Copyright (c) 2007, NLnet Labs. All rights reserved. 5 * 6 * This software is open source. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 42 unchanged lines hidden (view full) --- 51 int srtt; 52 /** smoothed mean deviation, in milliseconds */ 53 int rttvar; 54 /** current RTO in use, in milliseconds */ 55 int rto; 56}; 57 58/** min retransmit timeout value, in milliseconds */ | 1/* 2 * util/rtt.h - UDP round trip time estimator for resend timeouts. 3 * 4 * Copyright (c) 2007, NLnet Labs. All rights reserved. 5 * 6 * This software is open source. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 42 unchanged lines hidden (view full) --- 51 int srtt; 52 /** smoothed mean deviation, in milliseconds */ 53 int rttvar; 54 /** current RTO in use, in milliseconds */ 55 int rto; 56}; 57 58/** min retransmit timeout value, in milliseconds */ |
59#define RTT_MIN_TIMEOUT 50 | 59extern int RTT_MIN_TIMEOUT; |
60/** max retransmit timeout value, in milliseconds */ 61#define RTT_MAX_TIMEOUT 120000 62 63/** 64 * Initialize RTT estimators. 65 * @param rtt: The structure. Caller is responsible for allocation of it. 66 */ 67void rtt_init(struct rtt_info* rtt); --- 40 unchanged lines hidden --- | 60/** max retransmit timeout value, in milliseconds */ 61#define RTT_MAX_TIMEOUT 120000 62 63/** 64 * Initialize RTT estimators. 65 * @param rtt: The structure. Caller is responsible for allocation of it. 66 */ 67void rtt_init(struct rtt_info* rtt); --- 40 unchanged lines hidden --- |