$NetBSD: patch-ad,v 1.2 2006/08/31 08:49:34 ghen Exp $

--- common/aiccu_kame.c.orig	2006-07-23 16:55:14.000000000 +0200
+++ common/aiccu_kame.c
@@ -45,10 +45,18 @@ bool aiccu_os_setup(struct TIC_Tunnel *h
 			hTunnel->sIPv6_LinkLocal);
 
 		/* Local side of the tunnel */
+#ifdef __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
 
 		/* Remote side of the tunnel */
 		aiccu_exec(
