[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r18725 - libmwmodem/src/tests
From: |
gnunet |
Subject: |
[GNUnet-SVN] r18725 - libmwmodem/src/tests |
Date: |
Tue, 20 Dec 2011 17:34:56 +0100 |
Author: ruppa
Date: 2011-12-20 17:34:56 +0100 (Tue, 20 Dec 2011)
New Revision: 18725
Modified:
libmwmodem/src/tests/libmwmodem_test_ipv4.c
Log:
Modified: libmwmodem/src/tests/libmwmodem_test_ipv4.c
===================================================================
--- libmwmodem/src/tests/libmwmodem_test_ipv4.c 2011-12-20 16:07:09 UTC (rev
18724)
+++ libmwmodem/src/tests/libmwmodem_test_ipv4.c 2011-12-20 16:34:56 UTC (rev
18725)
@@ -24,6 +24,7 @@
#include <stdio.h>
#include <malloc.h>
#include <stdint.h>
+#include <errno.h>
void Callback(void *cls, const struct MWMODEM_Package *package)
{
@@ -103,6 +104,22 @@
}
}
+struct MWChannel {
+ uint8_t index;
+ uint8_t modcod;
+ uint8_t queue;
+ uint32_t datasent;
+ uint32_t symbolratelimit;
+};
+
+struct MWHeader
+{
+ uint32_t header;
+ uint32_t time;
+ uint32_t symbolrate;
+ uint8_t channelmax;
+};
+
int generatedata()//TODO
{
const struct sockaddr *address;
@@ -115,6 +132,7 @@
if (-1==s) return -1;
memset (&address4, 0, sizeof(address4));
+ address4.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
address4.sin_family = AF_INET;
#if HAVE_SOCKADDR_IN_SIN_LEN
@@ -126,8 +144,8 @@
alen = sizeof (address4);
- if (-1==bind(s, address, alen))return -1;
+
return 0;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r18725 - libmwmodem/src/tests,
gnunet <=