--- common/aiccu_kame.c 2005-01-31 21:32:50.000000000 +0100 +++ common/aiccu_kame.c 2006-04-09 19:33:23.000000000 +0200 @@ -43,10 +43,18 @@ hTunnel->sIPv6_LinkLocal); } +#if defined(__NetBSD) || defined(__NetBSD__) + aiccu_exec( + "ifconfig %s inet6 %s %s prefixlen 128 alias", + g_aiccu->ipv6_interface, + hTunnel->sIPv6_Local, + hTunnel->sIPv6_POP); +#else aiccu_exec( "ifconfig %s inet6 %s prefixlen 128 alias", g_aiccu->ipv6_interface, hTunnel->sIPv6_Local); +#endif aiccu_exec( "route add -inet6 %s -prefixlen 128 %s", --- common/common.h 2005-01-31 21:32:50.000000000 +0100 +++ common/common.h 2006-04-09 19:29:30.000000000 +0200 @@ -13,6 +13,10 @@ #ifndef AICCU_COMMON_H #define AICCU_COMMON_H "H5K7:W3NDY5UU5N1K1N1C0l3" +#if defined(__NetBSD) || defined(__NetBSD__) +#define _NETBSD_SOURCE +#endif + #ifdef _DEBUG #define D(x) x #else