[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(usagi-users 01992) Re: problem with pluto usagi version when using IPv6 addresses



Kazunori Miyazawa wrote:

> Hello,
>
> Thank you for using USAGI IPsec.
> Please let me confirm. You did "ipsec auto --ready" before "ipsec auto --up test".
>
> You only make pluto run. Pluto is just running and waiting configurations.
> "ipsec auto --ready" make pluto ready to request/accept key exchanges.
>
>

i'm fixing the problem, there is a bug in the code of pluto. when seraching for local
interface pluto, find only ipv4
interfaces and no ipv6. so when trying to match the connection end with an interface it
can't find a matching one
beacause all local addresses that find are ipv4. So, in the code of pluto in the file
server.c i change this
#ifndef _USAGI
static struct raw_iface *
find_raw_ifaces6(void)
{



by

#ifdef _USAGI
static struct raw_iface *
find_raw_ifaces6(void)
{

so i'm using the function that get the list if interfaces with IPv6 addresses from
/proc/net/if_inet6
and now pluto work well.
thanks