Add missing include
[oweals/gnunet.git] / src / transport / plugin_transport_udp.h
index 3bdf4a561144bfb1d1bc8610e7851a7ca59d9eab..6fb573690bc9913eb3993c4e5b1442aef7a5fce0 100644 (file)
@@ -57,6 +57,11 @@ GNUNET_NETWORK_STRUCT_BEGIN
  */
 struct IPv4UdpAddress
 {
+       /**
+        * Optional options and flags for this address
+        */
+       uint32_t options GNUNET_PACKED;
+
   /**
    * IPv4 address, in network byte order.
    */
@@ -74,6 +79,10 @@ struct IPv4UdpAddress
  */
 struct IPv6UdpAddress
 {
+       /**
+        * Optional options and flags for this address
+        */
+       uint32_t options GNUNET_PACKED;
 
   /**
    * IPv6 address.
@@ -126,7 +135,7 @@ struct Plugin
    * Session of peers with whom we are currently connected,
    * map of peer identity to 'struct PeerSession'.
    */
-  struct GNUNET_CONTAINER_MultiHashMap *sessions;
+  struct GNUNET_CONTAINER_MultiPeerMap *sessions;
 
   /**
    * Heap with all of our defragmentation activities.
@@ -159,6 +168,12 @@ struct Plugin
    */
   char *bind6_address;
 
+
+  /**
+   * Bytes currently in buffer
+   */
+  int64_t bytes_in_buffer;
+
   /**
    * Handle to NAT traversal support.
    */
@@ -245,10 +260,15 @@ struct Plugin
   struct BroadcastAddress *ipv4_broadcast_head;
 
   /**
-   * Enable IPv6
+   * Is IPv6 enabled: GNUNET_YES or GNUNET_NO
    */
   int enable_ipv6;
 
+  /**
+   * Is IPv4 enabled: GNUNET_YES or GNUNET_NO
+   */
+  int enable_ipv4;
+
   /**
    * Port we broadcasting on.
    */