summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh3
-rw-r--r--noncore/net/wellenreiter/libwellenreiter/source/proto.cc1
-rw-r--r--noncore/net/wellenreiter/libwellenreiter/source/sniff.hh2
3 files changed, 5 insertions, 1 deletions
diff --git a/noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh b/noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh
index 7c6a21d..b85b7b7 100644
--- a/noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh
+++ b/noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh
@@ -1,27 +1,28 @@
1/* $Id$ */ 1/* $Id$ */
2 2
3#ifndef CARDMODE_HH 3#ifndef CARDMODE_HH
4#define CARDMODE_HH 4#define CARDMODE_HH
5 5
6#include <string.h> 6#include <string.h>
7#include <stdlib.h> 7#include <stdlib.h>
8#include <errno.h> 8#include <errno.h>
9#include <sys/types.h>
10#include <sys/time.h>
9#include <sys/socket.h> 11#include <sys/socket.h>
10#include <netinet/in.h> 12#include <netinet/in.h>
11#include <arpa/inet.h>
12 13
13extern "C" 14extern "C"
14{ 15{
15#include <net/bpf.h> 16#include <net/bpf.h>
16#include <pcap.h> 17#include <pcap.h>
17} 18}
18 19
19/* Defines, used for the card setup */ 20/* Defines, used for the card setup */
20#define DEFAULT_PATH "/proc/driver/aironet/%s/Config" 21#define DEFAULT_PATH "/proc/driver/aironet/%s/Config"
21 #define CARD_TYPE_CISCO1 22 #define CARD_TYPE_CISCO1
22 #define CARD_TYPE_NG 2 23 #define CARD_TYPE_NG 2
23 #define CARD_TYPE_HOSTAP3 24 #define CARD_TYPE_HOSTAP3
24 25
25/* only for now, until we have the daemon running */ 26/* only for now, until we have the daemon running */
26/*the config file should provide these information */ 27/*the config file should provide these information */
27#define CARD_TYPE CARD_TYPE_HOSTAP 28#define CARD_TYPE CARD_TYPE_HOSTAP
diff --git a/noncore/net/wellenreiter/libwellenreiter/source/proto.cc b/noncore/net/wellenreiter/libwellenreiter/source/proto.cc
index 2ec23f4..a1228e4 100644
--- a/noncore/net/wellenreiter/libwellenreiter/source/proto.cc
+++ b/noncore/net/wellenreiter/libwellenreiter/source/proto.cc
@@ -1,24 +1,25 @@
1/* 1/*
2 * Communication protocol 2 * Communication protocol
3 * 3 *
4 * $Id$ 4 * $Id$
5 */ 5 */
6 6
7#include "proto.hh" 7#include "proto.hh"
8#include "sock.hh" 8#include "sock.hh"
9#include "log.hh"
9 10
10/* Send found network to GUI */ 11/* Send found network to GUI */
11int send_network_found (const char *guihost, int guiport, void *structure) 12int send_network_found (const char *guihost, int guiport, void *structure)
12{ 13{
13 wl_network_t *ptr; 14 wl_network_t *ptr;
14 char buffer[2048]; 15 char buffer[2048];
15 char temp[5]; 16 char temp[5];
16 17
17 ptr = (wl_network_t *)structure; 18 ptr = (wl_network_t *)structure;
18 19
19 memset(buffer, 0, 2048); 20 memset(buffer, 0, 2048);
20 21
21 /* Type = Found new net */ 22 /* Type = Found new net */
22 memcpy(buffer, "01", 2); 23 memcpy(buffer, "01", 2);
23 24
24 /* Set Net-type */ 25 /* Set Net-type */
diff --git a/noncore/net/wellenreiter/libwellenreiter/source/sniff.hh b/noncore/net/wellenreiter/libwellenreiter/source/sniff.hh
index c13461a..c7108ac 100644
--- a/noncore/net/wellenreiter/libwellenreiter/source/sniff.hh
+++ b/noncore/net/wellenreiter/libwellenreiter/source/sniff.hh
@@ -1,25 +1,27 @@
1/* $Id$ */ 1/* $Id$ */
2 2
3#ifndef SNIFF_HH 3#ifndef SNIFF_HH
4#define SNIFF_HH 4#define SNIFF_HH
5 5
6#include <string.h> 6#include <string.h>
7#include <stdio.h> 7#include <stdio.h>
8#include <stdlib.h> 8#include <stdlib.h>
9#include <errno.h> 9#include <errno.h>
10#include <sys/types.h>
11#include <sys/time.h>
10#include <sys/socket.h> 12#include <sys/socket.h>
11#include <netinet/in.h> 13#include <netinet/in.h>
12#include <arpa/inet.h> 14#include <arpa/inet.h>
13 15
14extern "C" 16extern "C"
15{ 17{
16#include <net/bpf.h> 18#include <net/bpf.h>
17#include <pcap.h> 19#include <pcap.h>
18} 20}
19 21
20#define NONBROADCASTING "non-broadcasting" 22#define NONBROADCASTING "non-broadcasting"
21 23
22/* holds all the interresting data */ 24/* holds all the interresting data */
23struct packetinfo 25struct packetinfo
24{ 26{
25 int isvalid; 27 int isvalid;