I want to send a raw ethernet packet with out using socket api.
I know that we can do it by directly writing our buffer(header and data) to the eth0 device using write() api. I am not sure about the contents of buffer that i should write to eth0 device.

Where can i get the relevant info?
Could somebody help me out.

Thanks in advance.