1 /**********************************************************
2 SixXS - Automatic IPv6 Connectivity Configuration Utility
3 ***********************************************************
4 Copyright 2003-2005 SixXS - http://www.sixxs.net
5 ***********************************************************
6 common/aiccu_openbsd2.c - OpenBSD 2.7-2.9
7 ***********************************************************
9 $Id: aiccu_openbsd2.c,v 1.7 2007-01-07 16:37:50 jeroen Exp $
10 $Date: 2007-01-07 16:37:50 $
12 Original version provided by Wouter Van Hemel
13 **********************************************************/
17 bool aiccu_os_install(void)
22 bool aiccu_os_setup(struct TIC_Tunnel
*hTunnel
)
24 if (hTunnel
->uses_tundev
== 0)
27 "/sbin/ifconfig %s giftunnel %s %s",
28 g_aiccu
->ipv6_interface
,
29 strcmp(hTunnel
->sIPv4_Local
, "heartbeat") == 0 ? "0.0.0.0" : hTunnel
->sIPv4_Local
,
35 g_aiccu
->ipv6_interface
);
39 g_aiccu
->ipv6_interface
,
42 if (hTunnel
->uses_tundev
== 1)
45 "ifconfig %s inet6 %s prefixlen 64 alias",
46 g_aiccu
->ipv6_interface
,
47 hTunnel
->sIPv6_LinkLocal
);
51 "ifconfig %s inet6 %s %s prefixlen 128 alias",
52 g_aiccu
->ipv6_interface
,
56 if (g_aiccu
->defaultroute
)
59 "route add -inet6 %s %s",
67 void aiccu_os_reconfig(struct TIC_Tunnel
*hTunnel
)
70 "/sbin/ifconfig %s giftunnel %s %s",
71 g_aiccu
->ipv6_interface
,
76 void aiccu_os_delete(struct TIC_Tunnel
*hTunnel
)
81 g_aiccu
->ipv6_interface
);
84 "ifconfig %s inet6 %s %s prefixlen 128 -alias",
85 g_aiccu
->ipv6_interface
,