From 81b92caa24a83620032438df9c5ee3ea51663a02 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 17 Jan 2015 22:20:18 +0000 Subject: simplify ATS API and plugin API by returning the network type, instead of an ATS_Information struct --- src/transport/plugin_transport_unix.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/transport/plugin_transport_unix.c') diff --git a/src/transport/plugin_transport_unix.c b/src/transport/plugin_transport_unix.c index 460869181..112f15d09 100644 --- a/src/transport/plugin_transport_unix.c +++ b/src/transport/plugin_transport_unix.c @@ -1387,7 +1387,10 @@ unix_transport_server_start (void *cls) plugin->unix_socket_path[0] = '@'; un->sun_path[0] = '\0'; } - plugin->ats_network = plugin->env->get_address_type (plugin->env->cls, (const struct sockaddr *) un, un_len); + plugin->ats_network.type = htonl (GNUNET_ATS_NETWORK_TYPE); + plugin->ats_network.value = htonl (plugin->env->get_address_type (plugin->env->cls, + (const struct sockaddr *) un, + un_len)); plugin->unix_sock.desc = GNUNET_NETWORK_socket_create (AF_UNIX, SOCK_DGRAM, 0); if (NULL == plugin->unix_sock.desc) -- cgit v1.2.3