<HTML>
<HEAD>
<TITLE>Resending: feeding events to dhcp client state machine </TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Resending this question : Do you have some thoughts on this ?<BR>
<BR>
Thanks<BR>
Bhuvana <BR>
<BR>
<BR>
On 4/25/12 12:12 PM, "bramkuma" <<a href="bramkuma@cisco.com">bramkuma@cisco.com</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hi Everyone, <BR>
<BR>
I’m using the isc-dhcp-4.2.1 source-code. I’ve integrated the dhcp-client as a library whose functions I can call from some applications in my OS (running a customized version of linux). I have 2 questions <BR>
<BR>
1. I want to feed events to the dhcp-client state machine from the outside-system, as a response to some stimuli. How do I go about doing this ? I see the omapi listener objects defined in dhcp_common_objects_setup() under comon/comapi.c, but I don’t see the events getting used anywhere ( For example: dhcp_control_set_value). <BR>
<BR>
Can someone throw some light on this ?<BR>
<BR>
2. Also, how do I make the dhcp-client dynamically add and remove interfaces ? I see that the main() goes through a discover_interfaces() call. This flow is actually common to client, server and relay. The only way I can think of doing this is to return without doing discover_interfaces() and then feed events to the state-machine for a new add or remove. <BR>
<BR>
Is there a better way to handle this situation ?<BR>
<BR>
<BR>
Thanks<BR>
Bhuvana <BR>
<BR>
</SPAN></FONT></BLOCKQUOTE>
</BODY>
</HTML>