2017-12-06 01:06:40 +01:00
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
typedef struct conntrack_info {
|
|
|
|
uint32_t srcip;
|
|
|
|
uint16_t srcport;
|
|
|
|
uint32_t dstip;
|
|
|
|
uint16_t dstport;
|
|
|
|
} conntrack_info_t;
|
|
|
|
|
|
|
|
int dns_handle_incoming(const uint32_t srcip, const uint16_t srcport,
|
|
|
|
const uint32_t dstip, const uint16_t dstport,
|
|
|
|
const char *packet_data, const UINT packet_dataLen,
|
|
|
|
conntrack_info_t *conn_info);
|
|
|
|
|
|
|
|
int dns_handle_outgoing(const uint32_t srcip, const uint16_t srcport,
|
|
|
|
const uint32_t dstip, const uint16_t dstport,
|
|
|
|
const char *packet_data, const UINT packet_dataLen);
|
2017-12-07 20:38:21 +01:00
|
|
|
|
|
|
|
void flush_dns_cache();
|
2017-12-16 12:16:01 +01:00
|
|
|
int dns_is_dns_packet(const char *packet_data, const UINT packet_dataLen, const int outgoing);
|