Thanks for the quick response.<div><br><div>What I am going to do is the third level: Properly allocate individual values for clients from a pool, so that each value is used for only one client. I think it is similar with IP allocation, but what I want to do is using dynamical option value.</div>
<div><br><br><div class="gmail_quote">On Wed, Mar 21, 2012 at 1:54 AM, Hans Liss <span dir="ltr"><<a href="mailto:Hans@liss.pp.se">Hans@liss.pp.se</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi!<br>
<br>
This list is not really a list for developers and code modders, but you should take a look at common/options.c and common/execute.c at the very least. However, I'm a bit concerned that this may turn out to be somewhat tricky for you, if you couldn't find that out on your own.<br>
<br>
What you are suggesting sounds interesting, though. What is it you want to achieve with this pooling, more exactly?<br>
<br>
There are at least three distinct levels of complexity here. Are you going to<br>
<br>
* Hand out option values randomly to each client without keeping track of them on the server<br>
* Keep track of the value selected for each client but allow each value to be used for several clients<br>
* Properly allocate individual values for clients from a pool, so that each value is used for only one client<br>
<br>
Best regards,<br>
<br>
Hans<br>
<div class="HOEnZb"><div class="h5"><br>
On 20 mar 2012, at 19:11, Chengyu Fan wrote:<br>
<br>
> Hi~<br>
> I am trying to modify the isc dhcp code to support dynamical allocation of an private option, like IP address pool. But it seems like that all other options are static. So I want to learn from the IP allocation, and let dhcp server do the allocation dynamically when he receives a request about the option from clients.<br>
><br>
> Does anyone know which structure store the options value in the config file? And which function handles the IP allocation?<br>
><br>
> Thanks,<br>
><br>
> --<br>
> Regards,<br>
> Chengyu Fan<br>
</div></div><div class="HOEnZb"><div class="h5">> _______________________________________________<br>
> dhcp-users mailing list<br>
> <a href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a><br>
> <a href="https://lists.isc.org/mailman/listinfo/dhcp-users" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-users</a><br>
<br>
_______________________________________________<br>
dhcp-users mailing list<br>
<a href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/dhcp-users" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-users</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Regards,<br>Chengyu Fan<br>
</div></div>