I write codes about sending TCP packet and receiving IP and TCP packet,
I create a socket:
if I set the option:
setsockopt(sk, IPPROTO_IP, IP_HDRINCL,&on,sizeof(on));(int on=1)
then I send combining packet of IP and TCP ,then I can receive IP and TCP packet.
If I don't set the option IP_HDRINCL,and I send only TCP packet,
when I receive packet,it display error:Resource temporarily unavailable.
Who could tell me why?and how to correct it?thank you very much.