title: IP_HDRINCL protocol not available
body: <p>Iam new to network programing (raw socket). I want to send syn packet.
  But i run this code I got an error like this:</p>
  <p>Error setting IP_HDRINCL: Protocol not available</p>
  <pre><code>//IP_HDRINCL to tell the kernel that headers are included in the packet
  int one = 1;
  const int *val = &amp;one;
  
  if (setsockopt (s, IPPROTO_IP, IP_HDRINCL, val, sizeof (one)) &lt; 0)
  {
      perror(&quot;Error setting IP_HDRINCL&quot;);
      exit(0);
  }
  </code></pre>