From 899785226af55b1c09b2b4d57345da2e07e5f729 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Fri, 20 Mar 2009 17:21:44 +0100 Subject: config: obsolete `ListenTo' clause This patch obsoletes the `ListenTo' clause which is a reminiscent of the intial event filtering code. Signed-off-by: Pablo Neira Ayuso --- src/read_config_yy.y | 26 ++------------------------ 1 file changed, 2 insertions(+), 24 deletions(-) (limited to 'src/read_config_yy.y') diff --git a/src/read_config_yy.y b/src/read_config_yy.y index 4e60d95..8ed000f 100644 --- a/src/read_config_yy.y +++ b/src/read_config_yy.y @@ -730,30 +730,8 @@ delay_destroy_msgs: T_DELAY listen_to: T_LISTEN_TO T_IP { - union inet_address addr; - -#ifdef HAVE_INET_PTON_IPV6 - if (inet_pton(AF_INET6, $2, &addr.ipv6) <= 0) -#endif - if (inet_aton($2, &addr.ipv4) <= 0) { - fprintf(stderr, "%s is not a valid IP address\n", $2); - exit(EXIT_FAILURE); - } - - if (CONFIG(listen_to_len) == 0 || CONFIG(listen_to_len) % 16) { - CONFIG(listen_to) = realloc(CONFIG(listen_to), - sizeof(union inet_address) * - (CONFIG(listen_to_len) + 16)); - if (CONFIG(listen_to) == NULL) { - fprintf(stderr, "cannot init listen_to array\n"); - exit(EXIT_FAILURE); - } - - memset(CONFIG(listen_to) + - (CONFIG(listen_to_len) * sizeof(union inet_address)), - 0, sizeof(union inet_address) * 16); - - } + fprintf(stderr, "WARNING: The clause `ListenTo' is obsolete, " + "ignoring.\n"); }; state_replication: T_REPLICATE states T_FOR state_proto -- cgit v1.2.3