diff options
Diffstat (limited to 'src/include/gnunet_tun_lib.h')
-rw-r--r-- | src/include/gnunet_tun_lib.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/include/gnunet_tun_lib.h b/src/include/gnunet_tun_lib.h index 822a661cf..7bef0a6be 100644 --- a/src/include/gnunet_tun_lib.h +++ b/src/include/gnunet_tun_lib.h | |||
@@ -918,6 +918,20 @@ GNUNET_TUN_service_name_to_hash (const char *service_name, | |||
918 | 918 | ||
919 | 919 | ||
920 | /** | 920 | /** |
921 | * Check if two sockaddrs are equal. | ||
922 | * | ||
923 | * @param sa one address | ||
924 | * @param sb another address | ||
925 | * @param include_port also check ports | ||
926 | * @return #GNUNET_YES if they are equal | ||
927 | */ | ||
928 | int | ||
929 | GNUNET_TUN_sockaddr_cmp (const struct sockaddr *sa, | ||
930 | const struct sockaddr *sb, | ||
931 | int include_port); | ||
932 | |||
933 | |||
934 | /** | ||
921 | * Compute the CADET port given a service descriptor | 935 | * Compute the CADET port given a service descriptor |
922 | * (returned from #GNUNET_TUN_service_name_to_hash) and | 936 | * (returned from #GNUNET_TUN_service_name_to_hash) and |
923 | * a TCP/UDP port @a ip_port. | 937 | * a TCP/UDP port @a ip_port. |