dhcp-relay over tun interface - solution?
Shane Kerr
shane at isc.org
Fri Jan 3 09:45:12 UTC 2014
On Thu, 2 Jan 2014 20:19:16 +0100
Stefan Bauer <stefan.bauer at cubewerk.de> wrote:
> Von: Shane Kerr <shane at isc.org>
> > With the latest DHCP you should be able to enable sockets via an
> > option to the ./configure script:
> >
> > $ ./configure --enable-use-sockets
> >
> > That should do the same thing as the patch there.
>
> Hi Shane,
>
> i can set the flag but it drops the following error:
>
> ../common/libdhcp.a(socket.o): In function `if_register6':
> socket.c:500: undefined reference to `get_hw_addr'
> collect2: error: ld returned 1 exit status
>
> any ideas on that?
>
> Machine is debian6 - 64bit with isc-dhcp-4.2.2
Hm... it looks like the --enable-use-sockets option is currently
broken. :(
The attached patch should fix the build, but it is not a proper
solution.
The DHCP software uses the lower-level code for both packet
sending/receiving and for identifying which interfaces are available.
In the case of a tun device, we want the generic send/receive code, but
the OS-specific interface code. Ideally these two types of
functionality would be separated. I'll open a ticket here so we can
consider this.
Cheers,
--
Shane
-------------- next part --------------
A non-text attachment was scrubbed...
Name: socket.c.diff
Type: text/x-patch
Size: 3419 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/dhcp-hackers/attachments/20140103/d2edb251/attachment-0001.bin>
More information about the dhcp-hackers
mailing list