1 /**********************************************************
2 SixXS - Automatic IPv6 Connectivity Configuration Utility
3 ***********************************************************
4 Copyright 2003-2005 SixXS - http://www.sixxs.net
5 ***********************************************************
6 common/aiccu_openbsd.c - OpenBSD
7 ***********************************************************
9 $Id: aiccu_openbsd.c,v 1.11 2007-01-07 16:37:50 jeroen Exp $
10 $Date: 2007-01-07 16:37:50 $
11 **********************************************************/
15 bool aiccu_os_install(void)
20 bool aiccu_os_setup(struct TIC_Tunnel
*hTunnel
)
22 if (hTunnel
->uses_tundev
== 0)
25 "/sbin/ifconfig %s tunnel %s %s",
26 g_aiccu
->ipv6_interface
,
27 strcmp(hTunnel
->sIPv4_Local
, "heartbeat") == 0 ? "0.0.0.0" : hTunnel
->sIPv4_Local
,
33 g_aiccu
->ipv6_interface
);
37 g_aiccu
->ipv6_interface
,
40 if (hTunnel
->uses_tundev
== 1)
43 "ifconfig %s inet6 %s prefixlen 64 alias",
44 g_aiccu
->ipv6_interface
,
45 hTunnel
->sIPv6_LinkLocal
);
49 "ifconfig %s inet6 %s %s prefixlen 128 alias",
50 g_aiccu
->ipv6_interface
,
54 if (g_aiccu
->defaultroute
)
57 "route add -inet6 %s %s",
65 void aiccu_os_reconfig(struct TIC_Tunnel
*hTunnel
)
68 "/sbin/ifconfig %s tunnel %s %s",
69 g_aiccu
->ipv6_interface
,
74 void aiccu_os_delete(struct TIC_Tunnel
*hTunnel
)
79 g_aiccu
->ipv6_interface
);
81 if (hTunnel
->uses_tundev
== 0)
84 "ifconfig %s deletetunnel",
85 g_aiccu
->ipv6_interface
);