X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Ftransport%2Fplugin_transport_http_common.h;h=8a32e17e4f1650c642446843cf83e237441e8e10;hb=547d531bb3088bf00a0ae5777fa09c7893b7b370;hp=fa650d34deed820c88061b4c0532604d3d719cd4;hpb=c2d9d1e64c9801122caaa6b429fc67706db5c9d7;p=oweals%2Fgnunet.git diff --git a/src/transport/plugin_transport_http_common.h b/src/transport/plugin_transport_http_common.h index fa650d34d..8a32e17e4 100644 --- a/src/transport/plugin_transport_http_common.h +++ b/src/transport/plugin_transport_http_common.h @@ -1,6 +1,6 @@ /* This file is part of GNUnet - Copyright (C) 2002-2014 Christian Grothoff (and other contributing authors) + Copyright (C) 2002-2014 GNUnet e.V. GNUnet is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published @@ -14,8 +14,8 @@ You should have received a copy of the GNU General Public License along with GNUnet; see the file COPYING. If not, write to the - Free Software Foundation, Inc., 59 Temple Place - Suite 330, - Boston, MA 02111-1307, USA. + Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. */ /** * @file transport/plugin_transport_http_common.c @@ -93,12 +93,12 @@ struct HttpAddress * Address options * see `enum HttpAddressOptions` */ - uint32_t options; + uint32_t options GNUNET_PACKED; /** * Length of URL located after struct */ - uint32_t urlen; + uint32_t urlen GNUNET_PACKED; }; GNUNET_NETWORK_STRUCT_END @@ -247,4 +247,17 @@ http_common_cmp_addresses (const void *addr1, const void *addr2, size_t addrlen2); + +/** + * Function obtain the network type for an address. + * + * @param env the environment + * @param address the address + * @return the network type + */ +enum GNUNET_ATS_Network_Type +http_common_get_network_for_address (struct GNUNET_TRANSPORT_PluginEnvironment *env, + const struct GNUNET_HELLO_Address *address); + + /* end of plugin_transport_http_common.h */