From 8a4773da6fa786b7bcb2887ef40f29fa13534369 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Mon, 16 Aug 2010 21:49:14 +0000 Subject: [PATCH] * Noted where we have to modify rbl_check() and friends to support IPv6 --- citadel/locate_host.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/citadel/locate_host.c b/citadel/locate_host.c index d8a2c5b91..5ccde9ed4 100644 --- a/citadel/locate_host.c +++ b/citadel/locate_host.c @@ -38,6 +38,10 @@ #endif +/* + * Given an open client socket, return the host name and IP address at the other end. + * (IPv4 and IPv6 compatible) + */ void locate_host(char *tbuf, size_t n, char *abuf, size_t na, int client_socket) { struct sockaddr_in6 clientaddr; @@ -248,6 +252,8 @@ int rbl_check_addr(struct in_addr *addr, char *message_to_spammer) * PORTABILITY NOTE! I've made my best effort to rewrite this in a portable fashion. * If anyone makes changes to this function, please shout-out so we can test it to * make sure it didn't break on Linux! + * + * FIXME: support IPv6 RBL as specified in http://tools.ietf.org/html/draft-irtf-asrg-dnsbl-08 */ int rbl_check(char *message_to_spammer) { int r; -- 2.39.2