<div>I really wouldn't want to say something opposite to what Ted Lemon says.</div><div><br></div><div>Only if what he suggests is not good for you try this advice.</div><div><br></div><div>And I emphasize... only if what he suggests is not good for you! :)</div>
<div><br></div><div><br></div><div><br></div><div><br></div><div>It's not that easy.</div><div><br></div><div>To find it you need to realize that there are several macros globally used.</div><div><br></div><div>The functions you are looking for are not explicitly ( or literaly ) declared.</div>
<div><br></div><div>Instead of looking for <span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">the declaration option_code_hash_lookup ( that you probably will not find )</span></div>
<div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">search the code for the macros ##_lookup or ##hash_lookup.</span></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><br>
</span></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">I don't remember very well now, but you'll find a couple of macros that declare a bunch of 5 to 8 functions</span></div>
<div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">using a prefix that refers to the object for which you are declaring a new function.</span></div><div>
<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><br></span></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">After you find the (MACRO) function declarations you have to look for the place where the MACRO is invocated</span></div>
<div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">(or instantiated, whatever is the appropriate term ).</span></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><br>
</span></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><br></span></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">But trying to make it easy for you, if my memory doesn't fail there are only 2 files where that happens:</span></div>
<div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><br></span></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "> src/server/stables.c and</span></div>
<div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "> src/server/salloc.c</span></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><br>
</span></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">Try that and let me know if you could find it. Later I could check the code to tell you precisely what you need.</span></div>
<div><br></div><div><br></div><div>Other times if you are not lucky you could have 2 different definitions, one literal and another being in a macro.</div><div><br></div><div><br></div><div>Good luck!</div><div><br></div>
<div> Martin Caramés Abente</div><br clear="all">Martín Caramés Abente<br><br><br>Sent from Ciudad Autónoma de Buenos Aires, Argentina<br><a href="http://www.brainyquote.com/quotes/authors/m/mike_ditka.html" target="_blank">Mike Ditka</a> - "If God had wanted man to play soccer, he wouldn't have given us arms."
<br><br><div class="gmail_quote">On Wed, Dec 16, 2009 at 05:19, Aleem AKHTAR <span dir="ltr"><<a href="mailto:aleem.akhtar@st.com">aleem.akhtar@st.com</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>
I want to add some options in ISC-DHCPv6 client code but I am unable to find<br>
the definition of option_code_hash_lookup( . could someone help me where to<br>
find this definition and how to add my option in ISC-DHCPv6 client code.<br>
<br>
Thanks,<br>
Aleem<br>
<br>
_______________________________________________<br>
dhcp-workers mailing list<br>
<a href="mailto:dhcp-workers@lists.isc.org">dhcp-workers@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/dhcp-workers" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-workers</a><br>
</blockquote></div><br>