I'm awaiting the arrival of "Linux Network Programming" but in the meantime I thought I'd ask my brothers (and sisters) here for some info. If I have constructed a raw packet structure containing the ethernet header, ip header and tcp/udp/icmp header. What do I actually have to fill in when using the option IP_HDRINCL? At first I thought that I had to do everything but now I understand that the src and dest mac addresses of the ethernet header could be handled by the kernel. But what is required that I fill in and what values should the other fields have for the kernel to understand that it should fill those in?
Thanx in advance boys (and girls)!