<html><head><base href="x-msg://1327/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Wow dude, this question is really too vague for anyone to really answer. I don't like being mean spirited </div><div>but it makes me think this is something that you have next to no experience with because you're not</div><div>including some really important details that would help us answer your question. It might be the language</div><div>barrier though.</div><div><br></div><div>Even stillI believe I know, what project you are working on based on your previous posts though, and so</div><div>I'm going to guess at the answer.</div><div><br></div><div>What I THINK you are trying to do is place this server on some busybox enabled embedded device like some</div><div>commodity home router (CPE). Either this is part of some open software like open WRT or some </div><div>business solution likely the latter.</div><div><br></div><div>You may be asking how your application can intercept and inspect all packets, but I think this unlikely</div><div>and in any case of dubious purpose; let the DHCP server do it's thing don't processes packets and hand</div><div>them off to the server. You may want to maintain some accounting or administrative state based on the </div><div>arrival of DHCP associated packets or perhaps trigger some action, though and I'd say turn to iptables</div><div>for that.</div><div><br></div><div>You may also be asking about how you could control the DHCP server or have some administrative</div><div>server that configures that server, that's useful. In that case turn to OMAPI like your previous</div><div>questions have indicated you have considered. People have come to expect these devices have </div><div>some sort of controlling website running on the device, but an interesting project is to make it</div><div>so that your device can be controlled/administered by some external system. You might consider</div><div>implementing TR-069, but you company is going to have to invest in resources for that, </div><div>still, it's useful to get an understanding.</div><div><br></div><div>Finally, I think you're posing this question to the wrong forum, most of the guys on this list are</div><div>users of DHCP not programmers, and as a friend of mine would say they probably couldn't recognize</div><div>a C++ object even if it painted itself purple and ran up and down their street yelling "I am a C++</div><div>object!!" Ask on one of the forums/irc associated with those open-source projects that you are</div><div>replicating you may be surprised on how forthcoming they are, but you going to need to be</div><div>specific. I'm sure someone in the world has hit the same problem you are wrestling with now,</div><div>but probably not on this mailing list.</div><div><br></div><div>Do reply though, I will help as I can, but I'm going to stop short or doing your work for you as some</div><div>or your previous posts seem to ask for, sorry about that, bro.</div><div><br></div><div>-Jeff</div><div><br></div><br><div><div>On Feb 16, 2012, at 12:51 AM, <<a href="mailto:ameen.shajahan@wipro.com">ameen.shajahan@wipro.com</a>> <<a href="mailto:ameen.shajahan@wipro.com">ameen.shajahan@wipro.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div lang="EN-IN" link="blue" vlink="purple"><div class="Section1" style="page: Section1; "><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">Hi all,<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US"><o:p> </o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US"> I am having one application, which uses ISC DHCP-4.2.3 libraries.<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">All the packets will come to my application which in turn calls ISC DHCP API ‘s .<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">But my problem is to which API I should pass the socket descriptor to process the DHCP packets.<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US"> <o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US"> Kernel----------My application------------ISC DHCP-4.2.3<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US"> Please let me know.<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US"><o:p> </o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">Thanks,<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">Ameen S<o:p></o:p></span></div></div><p><strong><span style="font-size: 10pt; font-family: 'Palatino Linotype', serif; color: green; ">Please do not print this email unless it is absolutely necessary.</span></strong><span style="font-family: Arial, sans-serif; "><o:p></o:p></span></p><p>The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.</p><p>WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.</p><p><a href="http://www.wipro.com" style="color: blue; text-decoration: underline; ">www.wipro.com</a></p>_______________________________________________<br>dhcp-users mailing list<br><a href="mailto:dhcp-users@lists.isc.org" style="color: blue; text-decoration: underline; ">dhcp-users@lists.isc.org</a><br><a href="https://lists.isc.org/mailman/listinfo/dhcp-users" style="color: blue; text-decoration: underline; ">https://lists.isc.org/mailman/listinfo/dhcp-users</a></div></span></blockquote></div><br></body></html>