search for: interval_min

Displaying 1 result from an estimated 1 matches for "interval_min".

2001 Sep 26
1
[PATCH] random SSH_MSG_IGNORE packets
...SG_IGNORE + * packet when the timeout expires to fool traffic analysis. */ - - if (select((*maxfdp)+1, *readsetp, *writesetp, NULL, NULL) < 0) { + if (options.bogus_traffic_interval_max) { + u_int32_t rand = arc4random(); + u_int64_t timeusec; + static u_int64_t timebase = 0; + u_int32_t interval_min = options.bogus_traffic_interval_min; + u_int32_t interval_max = options.bogus_traffic_interval_max; + + if (!timebase) + timebase = (interval_max - interval_min) * 1000000; + timeusec = timebase * rand / 0xffffffff; + timeusec += interval_min * 1000000; + tv.tv_sec = timeusec / 1000000; +...