[strongSwan-dev] IPv6 address with :: replacing a single 16bit null word

Martin Willi martin at strongswan.org
Wed Jun 18 13:14:10 CEST 2014

Hi Fedor,

> Starting strongSwan 4.5.3 IPsec [starter]...
> # bad subnet: leftsubnet=2a00:8a00:6000:2e11:0000::0501:0001/128
> [non-abbreviating empty field in IPv6 numeric address]

Seems that the ttoaddr/ttosubnet functions inherited from the FreeS/WAN
project didn't parse such addresses correctly.

These functions have been removed from our code base long time ago, and
we just use inet_pton() everywhere. Using any 5.x release should fix the

Unlikely that we'll provide a patch for that outdated release. But maybe
using just :: instead of :0000:: can work around the issue?


More information about the Dev mailing list