-rw-r--r-- | noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh | 6 | ||||
-rw-r--r-- | noncore/net/wellenreiter/libwellenreiter/source/sniff.hh | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh b/noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh index 976ceeb..a3f8280 100644 --- a/noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh +++ b/noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh | |||
@@ -2,18 +2,22 @@ | |||
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 <pcap.h> | ||
9 | #include <errno.h> | 8 | #include <errno.h> |
10 | #include <sys/socket.h> | 9 | #include <sys/socket.h> |
11 | #include <netinet/in.h> | 10 | #include <netinet/in.h> |
12 | #include <arpa/inet.h> | 11 | #include <arpa/inet.h> |
12 | |||
13 | extern "C" | ||
14 | { | ||
13 | #include <net/bpf.h> | 15 | #include <net/bpf.h> |
16 | #include <pcap.h> | ||
17 | } | ||
14 | 18 | ||
15 | #include "../../libwellenreiter/source/log.hh" | 19 | #include "../../libwellenreiter/source/log.hh" |
16 | 20 | ||
17 | /* Defines, used for the card setup */ | 21 | /* Defines, used for the card setup */ |
18 | #define DEFAULT_PATH "/proc/driver/aironet/%s/Config" | 22 | #define DEFAULT_PATH "/proc/driver/aironet/%s/Config" |
19 | #define CARD_TYPE_CISCO1 | 23 | #define CARD_TYPE_CISCO1 |
diff --git a/noncore/net/wellenreiter/libwellenreiter/source/sniff.hh b/noncore/net/wellenreiter/libwellenreiter/source/sniff.hh index 60cdc43..c13461a 100644 --- a/noncore/net/wellenreiter/libwellenreiter/source/sniff.hh +++ b/noncore/net/wellenreiter/libwellenreiter/source/sniff.hh | |||
@@ -3,18 +3,22 @@ | |||
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 <pcap.h> | ||
10 | #include <errno.h> | 9 | #include <errno.h> |
11 | #include <sys/socket.h> | 10 | #include <sys/socket.h> |
12 | #include <netinet/in.h> | 11 | #include <netinet/in.h> |
13 | #include <arpa/inet.h> | 12 | #include <arpa/inet.h> |
13 | |||
14 | extern "C" | ||
15 | { | ||
14 | #include <net/bpf.h> | 16 | #include <net/bpf.h> |
17 | #include <pcap.h> | ||
18 | } | ||
15 | 19 | ||
16 | #define NONBROADCASTING "non-broadcasting" | 20 | #define NONBROADCASTING "non-broadcasting" |
17 | 21 | ||
18 | /* holds all the interresting data */ | 22 | /* holds all the interresting data */ |
19 | struct packetinfo | 23 | struct packetinfo |
20 | { | 24 | { |