1 /**********************************************************
2 SixXS - Automatic IPv6 Connectivity Configuration Utility
3 ***********************************************************
4 Copyright 2003-2005 SixXS - http://www.sixxs.net
5 ***********************************************************
6 common/aiccu_sunos.c - Sun Solaris / SunOS
8 ipv6_interface has to be eg ip.tun0
9 ***********************************************************
11 $Id: aiccu_sunos.c,v 1.3 2006-07-23 14:13:57 jeroen Exp $
12 $Date: 2006-07-23 14:13:57 $
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 inet6 plumb tsrc %s tdst %s up",
28 g_aiccu
->ipv6_interface
,
29 strcmp(hTunnel
->sIPv4_Local
, "heartbeat") == 0 ? "0.0.0.0" : hTunnel
->sIPv4_Local
,
33 "ifconfig %s inet6 addif %s %s up",
34 g_aiccu
->ipv6_interface
,
40 dolog(LOG_DEBUG
, "There is no Solaris support for tun-devices yet");
44 if (g_aiccu
->defaultroute
)
47 "route add -inet6 %s %s",
55 void aiccu_os_reconfig(struct TIC_Tunnel
*hTunnel
)
57 if (hTunnel
->uses_tundev
== 0)
60 "/sbin/ifconfig %s inet6 plumb tsrc %s tdst %s up",
61 g_aiccu
->ipv6_interface
,
62 strcmp(hTunnel
->sIPv4_Local
, "heartbeat") == 0 ? "0.0.0.0" : hTunnel
->sIPv4_Local
,
67 void aiccu_os_delete(struct TIC_Tunnel
*hTunnel
)
72 g_aiccu
->ipv6_interface
);