[PATCH 0/2] Send agent options on failover bind update

Sytse Wielinga s.wielinga at lijbrandt-telecom.nl
Fri Jul 10 09:59:02 UTC 2009


Hi,

We're running a set of dhcp servers that depend on relay agent options
on their leases here, and in that configuration the current dhcpd
fails to match the client to the lease if it is sent to the 'wrong'
failover host.

This patch fixes that by sending the agent options over to the
failover peers when doing a bind update.

The patch applies to dhcpd 3.1.2, but I think porting to dhcpd 4
should be trivial.

On a sidenote, I ran dhcpd 3.1.1 (debian lenny version) in valgrind,
and I get the following (unrelated) error on the primary failover
host:

==9639== 1 errors in context 1 of 1:
==9639== Invalid read of size 8
==9639==    at 0x479987: omapi_one_dispatch (dispatch.c:401)
==9639==    by 0x443157: dispatch (dispatch.c:94)
==9639==    by 0x403DC4: main (dhcpd.c:608)
==9639==  Address 0x54066f0 is 32 bytes inside a block of size 80 free'd
==9639==    at 0x4C2130F: free (vg_replace_malloc.c:323)
==9639==    by 0x473DD4: dfree (alloc.c:202)
==9639==    by 0x474310: omapi_object_dereference (alloc.c:702)
==9639==    by 0x478863: omapi_io_dereference (dispatch.c:40)
==9639==    by 0x478C39: omapi_unregister_io_object (dispatch.c:138)
==9639==    by 0x4767A2: omapi_connection_connect_internal (connection.c:682)
==9639==    by 0x47648E: omapi_connection_connect (connection.c:583)
==9639==    by 0x479969: omapi_one_dispatch (dispatch.c:418)
==9639==    by 0x443157: dispatch (dispatch.c:94)
==9639==    by 0x403DC4: main (dhcpd.c:608)

Doesn't seem trivial to fix though. If you wish I can look into it a
little bit better.

Thanks,
Sytse




More information about the dhcp-hackers mailing list