]>
Commit | Line | Data |
---|---|---|
fa684c51 | 1 | #ifndef __AIMDUMP_H__ |
2 | #define __AIMDUMP_H__ | |
3 | ||
4 | #include <unistd.h> | |
5 | #include <netinet/if_ether.h> | |
6 | #include <pcap/pcap.h> | |
7 | #include "util.h" | |
8 | #include <signal.h> | |
ee3071b9 | 9 | #include <netinet/ip.h> |
10 | #include <netinet/tcp.h> | |
11 | #include <sys/socket.h> | |
12 | #include <arpa/inet.h> | |
fa684c51 | 13 | |
14 | /* | |
15 | * These are in NETWORK (big-endian) BYTE ORDER!!! | |
16 | */ | |
17 | #define SAPLEN 3 /* the length of the SAP header */ | |
18 | #define SAPHEADER {0xfc, 0xfc, 0x03} /* SAP header bytes */ | |
19 | #define ETHERTYPE_INCOMING 0x0056 /* on data from the 8227 */ | |
20 | #define ETHERTYPE_FOUND 0x003d /* on outgoing FOUND frames */ | |
21 | #define ETHERTYPE_DATA 0x05dc /* on outgoing Data frames */ | |
22 | ||
23 | void parser_icbm_incoming(u_char *data, int len); | |
24 | ||
25 | #endif /* __AIMDUMP_H__ */ |