diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-06-06 22:38:36 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-06-06 22:38:36 +0200 |
commit | 33ec56398316af14eec762406f21e649fcc3cbf2 (patch) | |
tree | 02564aa8e99f58d170fd8d844cdc0415a44a4045 /src/fastd.h | |
parent | 7297dd73d5bfa05f829bf44cd8480627d5b387f8 (diff) | |
download | fastd-33ec56398316af14eec762406f21e649fcc3cbf2.tar fastd-33ec56398316af14eec762406f21e649fcc3cbf2.zip |
Limit resolve frequency
Diffstat (limited to 'src/fastd.h')
-rw-r--r-- | src/fastd.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fastd.h b/src/fastd.h index c586eed..add22f2 100644 --- a/src/fastd.h +++ b/src/fastd.h @@ -136,6 +136,8 @@ struct _fastd_config { unsigned reorder_count; unsigned reorder_time; + unsigned min_resolve_interval; + char *ifname; struct sockaddr_in bind_addr_in; @@ -222,7 +224,7 @@ void fastd_send(fastd_context *ctx, const fastd_peer_address *address, fastd_buf void fastd_send_handshake(fastd_context *ctx, const fastd_peer_address *address, fastd_buffer buffer); void fastd_handle_receive(fastd_context *ctx, fastd_peer *peer, fastd_buffer buffer); -void fastd_resolve_peer(fastd_context *ctx, const fastd_peer_config *peer); +void fastd_resolve_peer(fastd_context *ctx, fastd_peer *peer); int fastd_vsnprintf(const fastd_context *ctx, char *buffer, size_t size, const char *format, va_list ap); void fastd_logf(const fastd_context *ctx, int level, const char *format, ...); |