title: ARM-linux4.3.2, can't open socket with PF_PACKET type
body: <p>I'm using FriendlyARM with linux 2.6.29 and compiling with ARM-Linux GCC
  4.3.2</p>
  
  <p>When trying to open a socket with PF_PACKET it fails with errno 97, Address
  family not supported by protocol.</p>
  
  <p>This is an example program that illustrates the problem - </p>
  
  <pre><code> #include &lt;stdio.h&gt;
   #include &lt;sys/socket.h&gt;
   #include &lt;netpacket/packet.h&gt;
   #include &lt;net/ethernet.h&gt; 
   //#include &lt;linux/if_packet.h&gt;
   //#include &lt;linux/if_ether.h&gt;
   #include &lt;errno.h&gt;
  
    int main() {
        int sockfd = socket(PF_PACKET, SOCK_RAW, htons(ETHER_TYPE));
        if (sockfd &lt; 0)
            perror("Can't open socket");
    }
  </code></pre>
  
  <p>Any ideas why this is happening? </p>
  
  <p>Thanks in advance</p>
  
  <p>Oren</p>
  
  <p>edit: 
  Things I've tried - </p>
  
  <ol>
  <li><p>Making sure I'm running as root</p></li>
  <li><p>Compiling under linux 2.6.27.7-9-pae and an intel machine, under which it works fine (gcc 4.4.1)</p></li>
  <li><p>The post below suggests that it has something to do with the linux version but based on the above I think it might be something else.
  <a href="http://forums.fedoraforum.org/showthread.php?t=239483" rel="nofollow noreferrer">link text</a></p></li>
  </ol>