remove ssldb and fix redis callback
This commit is contained in:
parent
cad968212a
commit
597a0c252e
@ -39,7 +39,7 @@ objects=constraint.o blacklist.o cyclic.o logger.o send.o recv.o state.o monitor
|
|||||||
|
|
||||||
ifeq ($(REDIS), true)
|
ifeq ($(REDIS), true)
|
||||||
LDLIBS+=-lhiredis
|
LDLIBS+=-lhiredis
|
||||||
objects+=module_redis.o redis.o module_ssldb.o
|
objects+=module_redis.o redis.o
|
||||||
CFLAGS+=-DREDIS
|
CFLAGS+=-DREDIS
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ int redismodule_init(UNUSED struct state_conf *conf)
|
|||||||
|
|
||||||
int redismodule_flush(void)
|
int redismodule_flush(void)
|
||||||
{
|
{
|
||||||
if (redis_lpush(QUEUE_NAME, buffer,
|
if (redis_lpush((char *)QUEUE_NAME, buffer,
|
||||||
buffer_fill, sizeof(scannable_t))) {
|
buffer_fill, sizeof(scannable_t))) {
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
@ -53,9 +53,8 @@ int redismodule_flush(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int redismodule_newip(ipaddr_n_t saddr, UNUSED ipaddr_n_t daddr,
|
int redismodule_newip(ipaddr_n_t saddr, UNUSED ipaddr_n_t daddr,
|
||||||
UNUSED port_n_t sport, UNUSED port_n_t dport,
|
|
||||||
UNUSED const char *response_type, int is_repeat,
|
UNUSED const char *response_type, int is_repeat,
|
||||||
UNUSED int in_cooldown, UNUSED const u_char *packet)
|
UNUSED int in_cooldown, UNUSED const u_char *packet, UNUSED size_t len)
|
||||||
{
|
{
|
||||||
if (!is_repeat) {
|
if (!is_repeat) {
|
||||||
buffer[buffer_fill].ip_address = saddr;
|
buffer[buffer_fill].ip_address = saddr;
|
||||||
|
Loading…
Reference in New Issue
Block a user