if LINUX
WANBIN = gnunet-transport-wlan-helper
WLAN_PLUGIN_LA = libgnunet_plugin_transport_wlan.la
+ WLAN_API_TEST = test_transport_api_wlan
endif
endif
$(CFLAGS) -DBUILD_HTTPS
endif
+
check_PROGRAMS = \
test_transport_api_tcp \
test_transport_api_tcp_nat \
$(HTTP_API_TEST) \
$(HTTPS_PLUGIN_TEST) \
$(HTTPS_API_TEST) \
- test_transport_api_wlan \
+ $(WLAN_API_TEST) \
test_transport_api_multi \
test_transport_api_reliability_tcp \
test_transport_api_reliability_tcp_nat \
$(top_builddir)/src/transport/libgnunettransport.la \
$(top_builddir)/src/util/libgnunetutil.la
+if HAVE_PCAP
+if LINUX
test_transport_api_wlan_SOURCES = \
test_transport_api.c
test_transport_api_wlan_LDADD = \
$(top_builddir)/src/transport/libgnunettransport.la \
$(top_builddir)/src/util/libgnunetutil.la
+endif
+endif
test_quota_compliance_tcp_SOURCES = \
test_quota_compliance.c
test_transport_api_multi_LDADD = \
$(top_builddir)/src/transport/libgnunettransport.la \
$(top_builddir)/src/util/libgnunetutil.la
-
-
EXTRA_DIST = \
test_transport_api_data.conf \
test_transport_api_tcp_peer1.conf \
int
main(int argc, char *argv[])
{
- if ((argc==3) && (strstr(argv[2],"1")))
+ if ((argc==2) && (strstr(argv[1],"1")))
{
return testmode(argc, argv);
}
-
+#if 0
u8 u8aSendBuffer[500];
char szErrbuf[PCAP_ERRBUF_SIZE];
int nCaptureHeaderLength = 0, n80211HeaderLength = 0, nLinkEncap = 0;
//get header type
nLinkEncap = pcap_datalink(ppcap);
- nCaptureHeaderLength = 0;
+ nCaptureHeaderLength = 0;home/mwachs/gnb/bin/
switch (nLinkEncap) {
}
-
+#endif
return (0);
}
#define FRAGMENT_QUEUE_SIZE 10
-#define DEBUG_wlan GNUNET_NO
+#define DEBUG_wlan GNUNET_YES
#define MESSAGE_LENGHT_UNKNOWN -1
#define NO_MESSAGE_OR_MESSAGE_FINISHED -2
static int
wlan_transport_start_wlan_helper(struct Plugin *plugin, int testmode)
{
-
+ char * filename = "gnunet-transport-wlan-helper";
plugin->server_stdout = GNUNET_DISK_pipe(GNUNET_YES, GNUNET_NO, GNUNET_YES);
if (plugin->server_stdout == NULL)
return GNUNET_SYSERR;
#if DEBUG_wlan
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "Starting gnunet-wlan-helper process cmd: %s %s\n", "gnunet-wlan-helper", plugin->interface);
+ "Starting gnunet-wlan-helper process cmd: %s %s %i\n", filename, plugin->interface, testmode);
#endif
/* Start the server process */
+
plugin->server_proc = GNUNET_OS_start_process(plugin->server_stdin,
- plugin->server_stdout, "gnunet-transport-wlan-helper",
- plugin->interface, testmode, NULL);
+ plugin->server_stdout, filename, plugin->interface, ((testmode==1)?"1":"0"), NULL);
if (plugin->server_proc == NULL)
{
#if DEBUG_wlan
GNUNET_assert(cls !=NULL);
- fprintf(stderr,"HERE");
plugin = GNUNET_malloc (sizeof (struct Plugin));
plugin->env = env;
plugin->pendingsessions = 0;