I want to have realtime information for all DHCPACK and DHCP_RELEASE events. I am currently piping the DHCP server log entries to a Java application listening on a socket. Ideally I would like to use a server API, so that I can subscribe to these events mentioned and only send the ACK and RELEASE events over to my application. This allows me to create a C/C++ application that interacts with my Java program the way I want and maybe have a look at using the JDHCP API, something like:
<br><br>DHCP SERVER --> Custom application interested in ACK and RELEASE events --> XML/RPC --> Java Web Services (using JDHCP)<br><br>I am not sure if the dhcpctl API allows me to do these things. What it will do is to expose a number of objects and their lease state, good stuff, but I will need to ask for it instead of me getting it realtime. 
<br><br><br><br><div><span class="gmail_quote">On 14/09/2007, <b class="gmail_sendername">Shane Kerr</b> <<a href="mailto:Shane_Kerr@isc.org">Shane_Kerr@isc.org</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
-----BEGIN PGP SIGNED MESSAGE-----<br>Hash: SHA1<br><br>Werner,<br><br>Werner Otto wrote:<br>> good stuff, a starting point. Would you know how I go about obtaining<br>> DHCP Request and Offer packets. I guess hours of reading will give me
<br>> the answer, but that is what you guys are here for ;-). Last one I<br>> promise...<br><br>ISC DHCP does not currently have hooks on the server side to do packet<br>inspection like that. I think it is possible to compile the server to execute a
<br>program on every packet, this might work for you.<br><br>I think the best thing may be for you to let us know what you are trying to do,<br>rather than asking us about specific mechanisms to do things like they are done
<br>in the Windows world. :)<br><br>If you really need to look at each Request or Offer packet, one of our project<br>folks can talk to you about your requirements off-list.<br><br>- --<br>Shane<br>-----BEGIN PGP SIGNATURE-----
<br>Version: GnuPG v1.4.7 (GNU/Linux)<br>Comment: Using GnuPG with Mozilla - <a href="http://enigmail.mozdev.org">http://enigmail.mozdev.org</a><br><br>iD8DBQFG6rk/MsfZxBO4kbQRAnYyAKDbjIFSM7Oz9xsiQgWHZ+4ufs/ongCfXb65<br>MSOK0k0Lk6ZkrirtKTq6qbs=
<br>=wR0S<br>-----END PGP SIGNATURE-----<br><br></blockquote></div><br><br clear="all"><br>-- <br>Kind Regards<br>Werner Otto<br>+44 782 846 5076 (M)<br>+44 203 132 4368 (H)