pex: automatically create host entries from incoming endpoint port notifications
[project/unetd.git] / pex.h
diff --git a/pex.h b/pex.h
index 18f323ef2a1771f71f2c0b7be12a6325c90848ae..271d998bc62106782f27e99307d020f9d2d746fa 100644 (file)
--- a/pex.h
+++ b/pex.h
@@ -9,6 +9,8 @@
 #include <libubox/uloop.h>
 #include "stun.h"
 
+#define NETWORK_PEX_HOSTS_LIMIT        128
+
 struct network;
 
 struct network_pex_host {
@@ -22,6 +24,7 @@ struct network_pex_host {
 struct network_pex {
        struct uloop_fd fd;
        struct list_head hosts;
+       int num_hosts;
        struct uloop_timeout request_update_timer;
 };