[sane-devel] IPv6 patch for saned and net backend

Julien BLACHE jb@jblache.org
Sat, 22 Mar 2003 10:44:40 +0100


Hi,

The patch at [1] (50 KB) adds IPv6 support to both saned and the net
backend, using get{addr,name}info(). It applies against the current
CVS (get a snapshot from the download page on the website).

When enabled, both IPv4 and IPv6 are supported. In case
get{name,addr}info() aren't available, the current saned code is
used. So hopefully it shouldn't break on platforms that do not have
these 2 functions. :)

The patch has been written and tested on Linux 2.4.20 vanilla (powerpc
and i386), and some other unixes.

It builds fine on Linux, but emits warnings on some platforms, such as
FreeBSD. The warnings (in saned only) concern the IN6_ARE_ADDR_EQUAL
and IN6_IS_ADDR_LOOPBACK macros ; maybe there are better-suited macros
that do the same for these platforms.

Apply the patch, and run aclocal, autoheader, autoconf before
building.

Please test and report any problems/patches here.

Thanks,

JB.

[1] http://people.debian.org/~jblache/sane-IPv6-20030320.patch

-- 
Julien BLACHE                                   <http://www.jblache.org> 
<jb@jblache.org>