]> git.decadent.org.uk Git - nfs-utils.git/commit
libexport.a: IPv6 support for client_init_subnet()
authorChuck Lever <chuck.lever@oracle.com>
Tue, 31 Aug 2010 19:30:14 +0000 (15:30 -0400)
committerSteve Dickson <steved@redhat.com>
Tue, 31 Aug 2010 19:34:24 +0000 (15:34 -0400)
commit965b15b855c0c621462256b0ab687fc32644255a
treeb0f84a908803cb81ad0782ed43424bb35fbc2004
parent2824097496f6b154befbf3b3d15dacf237b07f83
libexport.a: IPv6 support for client_init_subnet()

To parse and store an IPv6 host or subnet address, init_netmask()
needs to handle 128 bit subnet masks.

Unfortunately what once was a pretty simple little function has grown
much larger.  This logic must now not only parse IPv6 addresses
correctly, but must also distinguish between IPv4 and IPv6.

To avoid code duplication, I'm "bending" the cardinal rule of not
using "#ifdef" inside functions.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
support/export/client.c