[Top][All Lists]

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

Re: [Fwd: Questions on isc-dhcp]

From: Svante Signell
Subject: Re: [Fwd: Questions on isc-dhcp]
Date: Tue, 22 Feb 2011 00:38:03 +0100

On Thu, 2011-02-17 at 06:52 +0100, Svante Signell wrote:
> On Thu, 2011-02-17 at 01:04 +0100, Samuel Thibault wrote:
> > Diego Nieto Cid, le Wed 16 Feb 2011 14:33:15 -0300, a écrit :
> I will integrate your patch with my changes to a create proper patch.

Almost complete by now, only dhclient-script.hurd and
dhclient-script.hurd.udeb remains to finalize. The tests in common/tests
passes. When run-testing a new problem came up, see below.

> There is a need for a dhclient-script.hurd.udeb, which is a stripped
> down version of dhclient-script.hurd. Samuel, can you create this file?

Almost ready for review.

> Furthermore, the built packages are not functionally tested yet. This
> has to be done too, before we can say that isc-dchp-4.1.x is available.

When trying to run the client, the interface scan fails. In face the
function getifaddrs returns a non-zero value. The same problem can
easily be tested with the code given at the manpage for getifaddrs.
Below is a stripped down version of that code: Why does it fail?

/* File: fails_on_hurd.c */

      #include <arpa/inet.h>
       #include <sys/socket.h>
       #include <netdb.h>
       #include <ifaddrs.h>
       #include <stdio.h>
       #include <stdlib.h>
       #include <unistd.h>

       main(int argc, char *argv[])
           struct ifaddrs *ifaddr, *ifa;
           int family, s;
           char host[NI_MAXHOST];

           if (getifaddrs(&ifaddr) == -1) {

gcc -g fails_on_hurd.c
getifaddrs: (os/kern) successful

ldd ./a.out
 libc.so.0.3 => /lib/libc.so.0.3 (0x01037000)
 /lib/ld.so => /lib/ld.so.1 (0x00001000)
 libmachuser.so.1 => /lib/libmachuser.so.1 (0x011ca000)
 libhurduser.so.0.3 => /lib/libhurduser.so.0.3 (0x011e1000)

nm --dynamic /lib/libc.so.0.3|grep getifaddrs
001467e0 T getifaddrs

reply via email to

[Prev in Thread] Current Thread [Next in Thread]