Trying to implement a customized DHCP Server which Just send an IP Address in BOOTP/DHCP Packet. Parsing of the Received DISCOVER Packet was done.After filling the structure; am unable to send OFFER Packet via sendto function. OFFER Packet seems to be a Unicast Packet where destination address is the IP that we are going to give to the Client Machine.
Bit confused on; How to throw DHCP OFFER Packet using normal DGRAM Sockets for a non existing IP Address?? Also; do I need to enable SO_BROADCAST Flag while throwing the Packet ?
Any Help is really appreciated !!!
-Thnx, DDPS.