title: Unable to create netlink socket: Protocol not supported
body: <p>I found an example about intercepting IPv6 packets using netfilter along with libipq library.</p>
  
  <p>It begins by declaring and creating an ipq_handle structure:</p>
  
  <pre><code>struct ipq_handle *h;
  h = ipq_create_handle(0, NFPROTO_IPV6);
  if (!h) die(h);
  </code></pre>
  
  <p>The corresponding die() function is like the following</p>
  
  <pre><code>static void die(struct ipq_handle *h)
  ipq_error("Passer");
  ipq_destroy_handle(h);
  exit(1);
  </code></pre>
  
  <p>However, the program fails to run properly generating the following:</p>
  
  <blockquote>
    <p>Passer: Unable to create netlink socket: Protocol not supported</p>
  </blockquote>
  
  <p>Anyone knows the likely cause of the problem?</p>