[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

d-i Kfreebsd work



Hi All =D,

I Find some bugs on di kfreebsd:
  1. Fix error /etc/resolv.conf and try dns resolution works
  2. Fix configuration lo0 interface: by default 127.0.0.1 , but this is not set.
  3. Fix dupplicate interfaces and syslogd error netcfg[73] ip not found *{a}
  4. Fix netcfg default route *{b} (when I set from terminal: route add default ip_address netcfg says continue without default route) *{c}
{b} I think that netcfg has linux specific code on dhcp.c:

In line 86: popen("ip route","r"), di kfreebsd port use ifconfig and very different route command, I think that will be very useful include netstat on freebsd-net-tools-udeb, with netstat -nr print all route table, especially default gateway, please test this command on kfreebsd systems.

/* Returns 1 if no default route is available */
 81 static short no_default_route (void)
 82 {
 83     FILE* iproute = NULL;
 84     char buf[256] = { 0 };
 85
 86     if ((iproute = popen("ip route", "r")) != NULL) {
 87         while (fgets (buf, 256, iproute) != NULL) {
 88             if (buf[0] == 'd' && strstr (buf, "default via ")) {
 89                 pclose(iproute);
 90                 return 0;
 91             }
 92         }
 93         pclose(iproute);
 94     }
 95
 96     return 1;
 97 }


{a} http://neptuno.sisfo.com/~junix/dhcp.png

{b} http://neptuno.sisfo.com/~junix/bugs_d_i.avi


Cheers,

--
Julián Moreno Patiño
Estudiante Ingenieria de Sistemas y Computación
Registered GNU Linux User ID 488513
PGP KEY ID B280E07B

Reply to: