Datagram Networking Not Getting any Data?

Andrew Wiley debio264 at gmail.com
Sat May 3 19:42:18 PDT 2008


I'm trying to write a DHCP server. Yes, I'm reinventing the wheel, but... why is another post.

The problem isn't the protocol or understanding how it works. The problem is getting my program to receive DHCP requests, which are UDP packets sent to 255.255.255.255 to port 67. Attached is my main loop to receive packets. You can see where I have basically removed all packet processing. It looks like it should just print "Packet!" whenever a UDP packet arrives on port 67, but it doesn't.
My highly scientific test here was to start the program and force my laptop to get a new IP address. Wireshark monitoring on my laptop confirms that there are request packets going to 255.255.255.255:67, but the program just sits there.
 What's going on?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Main.d
Type: application/octet-stream
Size: 585 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20080503/106810a0/attachment.obj>


More information about the Digitalmars-d mailing list