obj->data.s = strndup(arg, text_buffer_size);
#endif /* HDDTEMP */
#ifdef TCP_PORT_MONITOR
- END OBJ(tcp_portmon, (void (*)(void))&tcp_portmon_update)
+ END OBJ_ARG(tcp_portmon, &tcp_portmon_update, "tcp_portmon: needs arguments")
tcp_portmon_init(arg, &obj->data.tcp_port_monitor);
#endif /* TCP_PORT_MONITOR */
END OBJ(entropy_avail, &update_entropy)
memset(itembuf, 0, sizeof(itembuf));
connection_index = 0;
/* massive argument checking */
- if (!arg) {
- CRIT_ERR(NULL, NULL, "tcp_portmon: needs arguments");
- }
argc = sscanf(arg, "%d %d %31s %d", &port_begin, &port_end, itembuf,
&connection_index);
if ((argc != 3) && (argc != 4)) {
return 0;
}
-int tcp_portmon_update(void)
+void tcp_portmon_update(void)
{
update_tcp_port_monitor_collection(pmc);
- return 0;
}
int tcp_portmon_clear(void)
int tcp_portmon_init(const char *, struct tcp_port_monitor_data *);
int tcp_portmon_action(char *, int, struct tcp_port_monitor_data *);
-int tcp_portmon_update(void);
+void tcp_portmon_update(void);
int tcp_portmon_clear(void);
int tcp_portmon_set_max_connections(int);