unet-cli: strip initial newline in usage message
[project/unetd.git] / pex.h
diff --git a/pex.h b/pex.h
index acaf372befc83b82aa8e04845fe6d8559e6b805b..271d998bc62106782f27e99307d020f9d2d746fa 100644 (file)
--- a/pex.h
+++ b/pex.h
@@ -9,18 +9,22 @@
 #include <libubox/uloop.h>
 #include "stun.h"
 
+#define NETWORK_PEX_HOSTS_LIMIT        128
+
 struct network;
 
 struct network_pex_host {
        struct list_head list;
        uint64_t timeout;
        uint64_t last_active;
+       uint64_t last_ping;
        union network_endpoint endpoint;
 };
 
 struct network_pex {
        struct uloop_fd fd;
        struct list_head hosts;
+       int num_hosts;
        struct uloop_timeout request_update_timer;
 };