I ended up coding the functionality using the DAG API. Digging deeper coral uses ioctl&#39;s to access information on the card and the new DAGs dont use the same ioctls anymore.<div><br></div><div>I patched coral to use the DAG API that should be more stable over time. Is Coral actively being maintained, and is there a way for the patch to make it into the repo ?<br>
<div><br></div><div>-srinivas<br><br>
<br><br><div class="gmail_quote">On Mon, Nov 7, 2011 at 10:26 PM, Stephen Donnelly <span dir="ltr">&lt;<a href="mailto:Stephen.Donnelly@endace.com">Stephen.Donnelly@endace.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">






<div lang="EN-NZ" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">I am not sure if the Coralreef developers are still maintaining the native DAG interface, possibly a bug has crept in.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">As a work-around you might try using the libpcap interface in Coral instead. Download and compile libpcap from <a href="http://tcpdump.org" target="_blank">tcpdump.org</a>; it should automatically detect and
 include DAG support if it is installed. Then build Coral with libpcap support, making sure it is finding and linking against your new libpcap version. You may need to modify LD_LIBRARY_PATH or remove the distribution libpcap version.<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">You can then capture from the libpcap ‘dag0’ interface in Coral (and other tools) instead of using the DAG native support. You will lose some time stamp resolution
 and the interface information with this method but it may be more robust.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">Regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">Stephen.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"><u></u> <u></u></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt">From:</span></b><span lang="EN-US" style="font-size:10.0pt"> <a href="mailto:coral-dev-bounces@caida.org" target="_blank">coral-dev-bounces@caida.org</a> [mailto:<a href="mailto:coral-dev-bounces@caida.org" target="_blank">coral-dev-bounces@caida.org</a>]
<b>On Behalf Of </b>Srinivas Krishnan<br>
<b>Sent:</b> Sunday, 6 November 2011 4:37 p.m.<br>
<b>To:</b> <a href="mailto:coral-dev@caida.org" target="_blank">coral-dev@caida.org</a><br>
<b>Subject:</b> [Coral-dev] Coral with DAG<u></u><u></u></span></p>
</div>
</div><div><div></div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">We are trying to use Coral with our 10G DAG and compiled coral with DAG support. However, every time we try to use a utility it segfaults. Here is a sample:<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"> crl_rate -Cproto=ETHER /dev/dag0<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Also a short trace of where it fails:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<div>
<p class="MsoNormal">Program received signal SIGSEGV, Segmentation fault.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">coral_dag_init (src=0x6420d0) at coral_type_dag.c:158<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">158             coral_cell_field_offset(iface0, PAYLOAD) = 18;<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">(gdb) bt<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">#0  coral_dag_init (src=0x6420d0) at coral_type_dag.c:158<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">#1  0x0000000000407638 in coral_open (src=0x6420d0) at coral_init.c:760<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">#2  0x0000000000403d99 in src_info (src=0x0) at crl_info.c:227<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">#3  0x0000000000404908 in main (argc=3, argv=0x7fffffffe738) at crl_info.c:352<u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Any suggestions on how to get around it ?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br clear="all">
-srinivas<u></u><u></u></p>
</div>
</div></div></div>
</div>
</div>

</blockquote></div><br></div></div>