<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX Processors中的主题 Berkeley Packet Filter</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Berkeley-Packet-Filter/m-p/146580#M240</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some problem with filtering some packets using the setsockopt function.&lt;/P&gt;&lt;P&gt;Following Code doesn't work on an iMX6 platform:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;struct sock_filter cams[] =&lt;BR /&gt; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; BPF_STMT(BPF_RET + BPF_K, 0)&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;setsockopt(sockfd, SOL_SOCKET, SO_ATTACH_FILTER, &amp;amp;cams, sizeof(cams));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Invalid argument" is returned as errno. Similiar Code can be found in libpcap where this seems to work. Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Mar 2012 09:02:35 GMT</pubDate>
    <dc:creator>JohannesPetzold</dc:creator>
    <dc:date>2012-03-19T09:02:35Z</dc:date>
    <item>
      <title>Berkeley Packet Filter</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Berkeley-Packet-Filter/m-p/146580#M240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some problem with filtering some packets using the setsockopt function.&lt;/P&gt;&lt;P&gt;Following Code doesn't work on an iMX6 platform:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;struct sock_filter cams[] =&lt;BR /&gt; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; BPF_STMT(BPF_RET + BPF_K, 0)&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;setsockopt(sockfd, SOL_SOCKET, SO_ATTACH_FILTER, &amp;amp;cams, sizeof(cams));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Invalid argument" is returned as errno. Similiar Code can be found in libpcap where this seems to work. Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2012 09:02:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Berkeley-Packet-Filter/m-p/146580#M240</guid>
      <dc:creator>JohannesPetzold</dc:creator>
      <dc:date>2012-03-19T09:02:35Z</dc:date>
    </item>
  </channel>
</rss>

