move to new client API: remove old client API
[oweals/gnunet.git] / src / include / gnunet_tun_lib.h
index 822a661cfb2fddde79fbcde3d3953954ef95fc4b..7bef0a6bebad64f4e15254013f493b1446cf5737 100644 (file)
@@ -917,6 +917,20 @@ GNUNET_TUN_service_name_to_hash (const char *service_name,
                                  struct GNUNET_HashCode *hc);
 
 
+/**
+ * Check if two sockaddrs are equal.
+ *
+ * @param sa one address
+ * @param sb another address
+ * @param include_port also check ports
+ * @return #GNUNET_YES if they are equal
+ */
+int
+GNUNET_TUN_sockaddr_cmp (const struct sockaddr *sa,
+                         const struct sockaddr *sb,
+                         int include_port);
+
+
 /**
  * Compute the CADET port given a service descriptor
  * (returned from #GNUNET_TUN_service_name_to_hash) and