Bug Tracker item #3610192, was opened at 2013-04-06 11:42
Message generated for change (Tracker Item Submitted) made by robotux
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1126467&aid=3610192&group_id=250683

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: daemon
Group: GIT
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Thomas Preud'homme (robotux)
Assigned to: Nobody/Anonymous (nobody)
Summary: Add IPv6 support

Initial Comment:
Please provide support for IPv6. Dspam currently assume IPv4 in several places 
but the change shouldn't be too big. The IPv6 API is able to handle IPv4 as 
well so switching should not introduce much code, it's more about rewriting. 
Some of the places I've noticed relying on IPv4 are:

daemon_listen() 
tracksource()
dspam_getsource()
is_blacklisted()

Some of the changes needed are:

char ip[32] -> char [INET6_ADDRSTRLEN]
inet_addr -> inet_pton(AF_INET6, …)
sizeof(struct sockaddr *) -> sizeof(var) // it's also good practice
inet_ntoa_r -> inet_ntop

I had started a patch but it's unfinished work so I prefer not to induce you in 
error.

Best regards.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1126467&aid=3610192&group_id=250683

------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
Dspam-devel mailing list
Dspam-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspam-devel

Reply via email to