dll layer

Hi all ,
How can I achieve getting the IP address of a local machine,
by sending packet over dll layer with its mac address,
and how should the frame be consturcted without providing
the IP address of the destination machine.
Thanx