Freeradiusclient-1.1.7 and IPv6

Alex Harrison exharrison at yahoo.com
Mon Dec 7 20:10:30 CET 2015


All,I hope I am using the right alias for this question.  If this belongs elsewhere, I'll happily send it there, but I didn't want to disrespect the intent of the developer list if my question should be posted here.  My question concerns whether the 1.1.7 release supports IPv6 addressing or if I misunderstand the release notes.
For background, I'm utilizing the freeradius client library(1.1.7 tarball from the freeradius webpage) for a project I'm working on.  The server side is set up and responds to radclient (both IPv4 and IPv6) requests properly.  I'm trying to use the client library to talk over IPv6.  First, I am using one of the included applications such as radiusclient or radlogin to establish a baseline to work with.  When I try to send a radius request with one of these applications, I see in my system's log:rc_get_ipaddr: couldn't resolve hostname: feedThis would be for an address such as "feed:beef::17:18:20:10".  Looking into the code, it appears that it is expecting IP:Port:Secret and it is parsing the first part of the IPv6 address as the whole address.  Looking into the code on github, I see that there is a block in the source intended to deal with [IPv6]:Port:Secret form.  I do not see this code in the 1.1.7 tarball.  If I use the github code, I can successfully make IPv6 radius requests which is great and I can use.  This brings me to my question, is the IPv6 release supposed to support IPv6 and I'm using it incorrectly or am I reading the release notes incorrectly?  I see in the release notes: "Added support for IPv6. Patch from Nikos Mavrogiannopoulos."  Browsing in the github repo, I see the commits from Nikos that add support for IPv6 along with the comment "Added support for connecting and listening to IPv6 addresses."  This commit is from March and I can not find the associated code from the commit in the 1.1.7 tar ball I downloaded.  Am I misunderstanding the release note or is IPv6 support I'm looking for actually not in the 1.1.7 release?
Thank you for any help,Alex


More information about the Freeradius-Users mailing list