Fwd: OMAPI Host Object and Duplicate MACs in different subnets

Caciano Machado caciano at gmail.com
Tue Aug 19 19:43:25 UTC 2008


>    Since entries added via OMAPI are normally available immediately you
> need to look at the code you changed so that the MAC address was no longer
> a unique key. You seem to have removed too much.
> --

Yes, I have removed too much before :-). The following patch permit to
have more than one IP per MAC using OMAPI using the ISC dhcp version
3.1.1. I'm using this in my production server and it's working OK with
groups and hosts configured with OMAPI.

--------
diff -Naur dhcp-3.1.1/omapip/message.c dhcp-3.1.1-patch/omapip/message.c
--- dhcp-3.1.1/omapip/message.c    2005-03-17 17:15:22.000000000 -0300
+++ dhcp-3.1.1-patch/omapip/message.c    2008-08-12 18:20:10.000000000 -0300
@@ -544,6 +544,7 @@

         if (status != ISC_R_SUCCESS &&
             status != ISC_R_NOTFOUND &&
+            status != ISC_R_KEYCONFLICT &&
             status != ISC_R_NOKEYS) {
             return omapi_protocol_send_status
                 (po, message -> id_object,
--------

Regards,
Caciano Machado


More information about the dhcp-hackers mailing list