summaryrefslogtreecommitdiffstats
path: root/btime_int.h
Commit message (Collapse)AuthorAgeFilesLines
* 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"
* Switch to using a select with a timeout instead of a loopNate Straz2008-09-231-1/+0
| | | | | | 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/+18
|
* After doing some debugging with the fleas, it turns out we're notNate Straz2008-09-231-1/+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-1/+1
|
* Add cookies to the heartbeat packet for added safety.v1.10-1Nate Straz2008-09-231-0/+2
| | | | | | | | | 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.
* Flatten the qarsh tree.Nate Straz2008-09-231-0/+12