On Fri, Aug 15, 2008 at 5:40 PM, Belisko Marek <marek.belisko@xxxxxxxxx> wrote: > Possibly u can try tracing through the calls: http://www.gelato.unsw.edu.au/lxr/source/net/ipv4/ipconfig.c 331 332 static int __init ic_setup_routes(void) 333 { 334 /* No need to setup device routes, only the default route... */ 335 336 if (ic_gateway != INADDR_NONE) { 337 struct rtentry rm; 338 int err; 339 340 memset(&rm, 0, sizeof(rm)); 341 if ((ic_gateway ^ ic_myaddr) & ic_netmask) { 342 printk(KERN_ERR "IP-Config: Gateway not on directly connected network.\n"); 343 return -1; 344 } 345 set_sockaddr((struct sockaddr_in *) &rm.rt_dst, 0, 0); 346 set_sockaddr((struct sockaddr_in *) &rm.rt_genmask, 0, 0); 347 set_sockaddr((struct sockaddr_in *) &rm.rt_gateway, ic_gateway, 0); 348 rm.rt_flags = RTF_UP | RTF_GATEWAY; 349 if ((err = ic_route_ioctl(SIOCADDRT, &rm)) < 0) { 350 printk(KERN_ERR "IP-Config: Cannot add default route (%d).\n", err);====>output of your message. 351 return -1; 352 } 353 } 354 355 return 0; 356 } so go on and trace the origin of the "-3" error number. -- Regards, Peter Teoh -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ