Building DHCP packet ( DHCPDISCOVER ) with C#, packet structure
-
I'm trying to build DHCP packet in then send it via UDP ( "0xff.0xff.0xff.0xff", 67 port ). I have sucessfully connected to my DHCP server, but I have problems with first packet structure ( DHCPDISCOVER ) as I see, but I have built it from RFC && Wiki, and have checked all fields/size in bytes of these fields. Here is the code in C# ( don't argue , this code is only for testing purpose to check the work of DHCP protocal and structures of packet ): http://pastebin.com/9NXuHyrw I have initialized the body of discover dhcp-packet in class and you can check the struct of it ( size, right fields ). So, what's wrong? Thanks, Best Regards
-
I'm trying to build DHCP packet in then send it via UDP ( "0xff.0xff.0xff.0xff", 67 port ). I have sucessfully connected to my DHCP server, but I have problems with first packet structure ( DHCPDISCOVER ) as I see, but I have built it from RFC && Wiki, and have checked all fields/size in bytes of these fields. Here is the code in C# ( don't argue , this code is only for testing purpose to check the work of DHCP protocal and structures of packet ): http://pastebin.com/9NXuHyrw I have initialized the body of discover dhcp-packet in class and you can check the struct of it ( size, right fields ). So, what's wrong? Thanks, Best Regards
oorlov wrote:
but I have problems
And they are?
oorlov wrote:
So, what's wrong?
We cannot even begin to guess. Try doing some debugging and narrow down to the actual issue. Then describe the problem in detail, including expected and actual results and perhaps show the code where the problem occurs.
Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman