Re: [pydhcplib] question regarding GetNextDhcpPacket()

[ Thread Index | Date Index | More lists.tuxfamily.org/pydhcplib Archives ]


Hi Reza,


I see your message only today. This client example is not a full dhcp client, but only a dhcp client packet handler : it does not have any dhcp client behaviour, it's only a listener.


On 22/11/2011 22:20, reza adinata wrote:
Hi all,

I am trying to use dhquery tool that uses pydhcplib for test stress.
Tried to send a dhcp REQUEST to a dhcp server, however I do not see
any trace of dhcp request message in wireshark. I tried to trace the
code, it stops basically in the line of

client.GetNextDhcpPacket()

Likewise, in the client of pydhcplib example (
http://pydhcplib.tuxfamily.org/pmwiki/index.php?n=Site.ClientExample
), I read that it does the same to "while True :
     client.GetNextDhcpPacket()"

what does this GetNextDhcpPacket() method actually do? Why is it stuck
in the method as if it is waiting for the response? I just need to
basically do a simple DHCP request first, and need to make sure it
shows in the trace..


Thank you all





--
Mathieu
http://matou.isanerd.net/
http://pydhcplib.tuxfamily.org/



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/