summaryrefslogtreecommitdiffstats
path: root/btime.c
Commit message (Collapse)AuthorAgeFilesLines
* Split btime into two partsNathan Straz2013-09-111-74/+66
| | | | | | | We don't need to lookup the addresses every time we get btime. Do it once during hbeat_init and reuse the socket in hbeat. This cleans up the qarsh strace so the hbeat is only a send and recv.
* Move to a new port for the new protocolNathan Straz2013-09-111-1/+1
| | | | I don't see any way to coexist with the old "protocol"
* update btime and hbeat libs to understand ipv6 as well as ipv4.Dean Jansa2010-09-031-37/+63
|
* [btime] Increase time to wait for responseNathan Straz2009-03-271-1/+1
| | | | | A quarter of a second may be too short for some connections. Increasing it to half a second should make it more reliable.
* Update copyright dates.Nate Straz2008-09-231-1/+1
|
* Switch to using a select with a timeout instead of a loopNate Straz2008-09-231-15/+21
| | | | | | of recvfroms and sleeps in btime(). This makes it easier to tune how long to wait for a heartbeat. Now I can get heartbeats over my vpn connection.
* Add copyright notices and GPL headerNate Straz2008-09-231-0/+19
|
* After doing some debugging with the fleas, it turns out we're notNate Straz2008-09-231-2/+2
| | | | | | | waiting around long enough for the heartbeat response to come back. Since we only heartbeat when there isn't any output (in qarsh), taking up to a second won't hurt. After doing some tests I'm changing the recvfrom to recvfrom sleep to 1000 usec and retrying up to 40 times.
* Force the cookie parts to be 32 bits to make Dean happy.Nate Straz2008-09-231-2/+2
|
* Add cookies to the heartbeat packet for added safety.v1.10-1Nate Straz2008-09-231-14/+46
| | | | | | | | | Two factors forced this change. 1. ports were being re-used so quickly that we could get lingering packets from past hosts when getting the btime for a new host. 2. We can't control which IP a btime response is sent from if a system has more than one interface. Adding a cookie allows us to know that a response came from whom we sent it.
* Add some checking to see if we get responses from someone we shouldn't be.Nate Straz2008-09-231-2/+34
|
* Flatten the qarsh tree.Nate Straz2008-09-231-0/+111