107: NETDBG("Assign a IP address to Neta.");
108: set_ifaddr("Neta", inet_addr(IPADDR), inet_addr(NETMASK));
109: NETDBG("Bring up Neta.");
116: index = so_ifnametoindex("Neta");
117: route_add(INADDR_ANY, inet_addr(GATEWAY), INADDR_ANY, index, 0);
118:
128: #ifdef DNSSERVER1
129: sin.sin_addr.s_addr = inet_addr(DNSSERVER1);
130: so_resctl(SO_RES_ADD_SERVER, &sin, sizeof(sin));
132: #ifdef DNSSERVER2
133: sin.sin_addr.s_addr = inet_addr(DNSSERVER2);
134: so_resctl(SO_RES_ADD_SERVER, &sin, sizeof(sin));
136: #ifdef DNSSERVER3
137: sin.sin_addr.s_addr = inet_addr(DNSSERVER3);
138: so_resctl(SO_RES_ADD_SERVER, &sin, sizeof(sin));
198: NETDBG("Assign 127.0.0.1 to lo0.");
199: set_ifaddr("lo0", htonl(INADDR_LOOPBACK), inet_addr("255.0.0.0"));
200: NETDBG("Bring up lo0.");
229: add_hosttable("localhost", htonl(INADDR_LOOPBACK));
230: add_hosttable("test", inet_addr("127.0.0.2"));
231: