#include "ekg2-config.h"#include <stdio.h>#include <string.h>#include <pcap.h>#include <errno.h>#include <sys/types.h>#include <sys/socket.h>#include <netinet/in.h>#include <arpa/inet.h>#include <ekg/debug.h>#include <ekg/plugins.h>#include <ekg/commands.h>#include <ekg/vars.h>#include <ekg/userlist.h>#include <ekg/stuff.h>#include <ekg/recode.h>#include <ekg/themes.h>#include <ekg/queries.h>#include <ekg/xmalloc.h>#include <ekg/protocol.h>#include "sniff_ip.h"#include "sniff_gg.h"#include "sniff_dns.h"#include "sniff_rivchat.h"#include "sniff_dns.inc"#include "sniff_gg.inc"#include "sniff_rivchat.inc"Struktury danych | |
| struct | connection_t |
Definicje | |
| #define | _GNU_SOURCE |
| #define | SNAPLEN 2000 |
| #define | PROMISC 0 |
| #define | GET_DEV(s) ((pcap_t *) ((session_t *) s)->priv) |
| #define | MAX_BYTES_PER_LINE 16 |
| #define | SNIFF_HANDLER(x, type) static int x(session_t *s, const connection_t *hdr, const type *pkt, int len) |
| #define | CHECK_LEN(x) |
| #define | CHECK_LEN(x) |
| #define | RIVCHAT_PACKET_LEN 328 |
| #define | WATCHER_PCAP(x, y) |
| #define | DEFAULT_FILTER "(tcp and (net 217.17.41.80/28 or net 217.17.45.128/27 or net 85.232.236.0/24 or net 91.197.12.0/22)) or (udp and (port 16127 or port 53))" |
Definicje typów | |
| typedef int(* | sniff_handler_t )(session_t *, const connection_t *, const unsigned char *, int) |
Wyliczenia | |
| enum | pkt_way_t { SNIFF_OUTGOING = 0, |