46#define PROBE_REQUEST_FLAG_PROBE_ONLY 0x00000001
50#define PROBE_REPLY_FLAG_RESEND_WKC 0x0001
52#define PROBE_REPLY_FLAG_ADDRS_EQUAL 0x0002
56#define PROBE_REPLY_FLAG_LIFETIME_SHARED 0x0004
58#define PROBE_REPLY_FLAG_PROBE_MORE 0x0008
94#define PROBE_REQUEST_LEN ((uint16_t)(2 * sizeof(uint64_t) + sizeof(uint32_t)))
98#define PROBE_REPLY_LEN ((uint16_t)(sizeof(uint64_t) + 5 * sizeof(uint16_t)))
Buffer management functions and garbage collection.
TLV framing shared by the TLV-based control messages of the wire protocol.
bool probe_reply_write(struct buffer *buf, const struct probe_reply *r)
Write a complete probe reply TLV, header and value, to buf.
bool probe_request_read(struct buffer *buf, struct probe_request *r)
Read a probe request TLV value from buf.
bool probe_request_write(struct buffer *buf, const struct probe_request *r)
Write a complete probe request TLV, header and value, to buf.
bool probe_reply_read(struct buffer *buf, struct probe_reply *r)
Read a probe reply TLV value from buf.
Wrapper structure for dynamically allocated memory.
probe reply TLV, a server's answer to a probe request
uint16_t priority
DNS SRV style priority, lower is preferred.
uint16_t connect_lifetime
For how many seconds, counted from the moment the client sent its own probe request,...
uint16_t weight
DNS SRV style weight.
uint64_t request_id
echoes the request_id of the request
uint16_t max_latency_diff
candidate band in ms around the fastest server
uint16_t flags
PROBE_REPLY_FLAG_*.
probe request TLV, sent by a client to probe a server
uint32_t flags
PROBE_REQUEST_FLAG_*.
uint64_t timestamp
The client clock as a UNIX timestamp in seconds.
uint64_t request_id
identifies this probe, echoed in the reply