Lines Matching refs:ssystem
76 int ssystem(const char *fmt, ...)
93 ssystem(const char *fmt, ...) __attribute__((__format__ (__printf__, 1, 2)));
96 ssystem(const char *fmt, ...) in ssystem() function
232 ssystem("ifconfig %s down", tundev); in serial_to_tun()
234 ssystem("ifconfig %s hw ether %s", tundev, &macs[6]); in serial_to_tun()
236 ssystem("ifconfig %s up", tundev); in serial_to_tun()
380 ssystem("ip neigh flush dev %s", tundev); in flush_neighbors()
769 ssystem("ifconfig %s down", tundev); in cleanup()
771 ssystem("sysctl -w net.ipv6.conf.all.forwarding=1"); in cleanup()
775 ssystem("netstat -nr" in cleanup()
785 ssystem("ifconfig %s inet6 %s remove", tundev, ipaddr); in cleanup()
787 ssystem("ifconfig %s down", tundev); in cleanup()
789 ssystem("route delete -inet6 %s", itfaddr); in cleanup()
835 ssystem("ifconfig %s inet `hostname` up", tundev); in ifconf()
836 ssystem("ifconfig %s add %s", tundev, ipaddr); in ifconf()
838 ssystem("ifconfig %s up", tundev); in ifconf()
839 ssystem("ip -6 route add 2001:db8::/64 dev %s", tundev); in ifconf()
840 ssystem("ip -6 addr add 2001:db8::2/64 dev %s", tundev); in ifconf()
841 ssystem("ip route add 192.0.2.0/24 dev %s", tundev); in ifconf()
842 ssystem("ip addr add 192.0.2.2/24 dev %s", tundev); in ifconf()
849 ssystem("ifconfig %s add fe80::1/64", tundev); in ifconf()
889 ssystem("ifconfig %s add %s/64", tundev, lladdr); in ifconf()
903 ssystem("ifconfig %s inet6 up", tundev ); in ifconf()
905 ssystem("ifconfig %s inet6 %s add", tundev, ipaddr ); in ifconf()
907 ssystem("sysctl -w net.inet6.ip6.forwarding=1"); in ifconf()
912 ssystem("ifconfig %s inet `hostname` %s up", tundev, ipaddr); in ifconf()
914 ssystem("sysctl -w net.inet.ip.forwarding=1"); in ifconf()
918 ssystem("ifconfig %s\n", tundev); in ifconf()