This is my code to create the RAW socket:
int s = socket (PF_INET,SOCK_RAW, IPPROTO_TCP); if (setsockopt (s, IPPROTO_IP, IP_HDRINCL, val, sizeof (one)) == -