REST/NAMESTORE: rework API
[oweals/gnunet.git] / src / transport / transport_api2_monitor.c
index d7b13ec74212f55c8bbd262744ab32b506086d8c..315001badf97f44cc0a52cf95e22498758b19c6f 100644 (file)
@@ -14,6 +14,8 @@
 
      You should have received a copy of the GNU Affero General Public License
      along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+     SPDX-License-Identifier: AGPL3.0-or-later
 */
 
 /**
@@ -174,8 +176,8 @@ handle_monitor_data (void *cls,
   struct GNUNET_TRANSPORT_MonitorInformation mi;
 
   mi.address = (const char *) &md[1];
-  mi.nt = (enum GNUNET_ATS_Network_Type) ntohl (md->nt);
-  mi.is_inbound = (int) ntohl (md->is_inbound);
+  mi.nt = (enum GNUNET_NetworkType) ntohl (md->nt);
+  mi.cs = (enum GNUNET_TRANSPORT_ConnectionStatus) ntohl (md->cs);
   mi.num_msg_pending = ntohl (md->num_msg_pending);
   mi.num_bytes_pending = ntohl (md->num_bytes_pending);
   mi.last_validation = GNUNET_TIME_absolute_ntoh (md->last_validation);