Sending using pfring_send()

Eitan Michaelson <[email protected]> Mon, 8 Jul 2019 18:58:31 +0300
Newsgroups gmane.linux.ntop.devel
Message-ID <[email protected]>
--===============1193811701563282823==
Content-Type: text/html; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 7bit

<html style="direction: ltr;">
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <style type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
  </head>
  <body bidimailui-charset-is-forced="true" style="direction: ltr;"
    bgcolor="#FFFFFF" text="#000000">
    <p>Hi,</p>
    <p><br>
    </p>
    <p>I Just did ..</p>
    <p><br>
    </p>
    <p>pfring_open("<font color="#ff0000">eth0, eth1</font>"...)..OK</p>
    <p>pfring_set_direction(rx_and_tx_direction) .. OK (not sure if I
      actually needs this one)<br>
      pfring_set_socket_mode(send_and_recv_mode) ..OK <br>
    </p>
    <p>pfring_enable_ring() .. OK</p>
    <p>pfring_recv(blocking) .. I'm getting packets from the interfaces</p>
    <p><br>
    </p>
    <p>However,<br>
    </p>
    <p>When I try to send data using pfring_send() I'm getting -1.</p>
    <p>Note that my little test is actually sending the same packet that
      was received from pfring_recv()</p>
    <p>Not very smart but its just a test :)</p>
    <p>Kernel module parameters : min_num_slots=65536
      enable_tx_capture=0<br>
    </p>
    <p>What did I do wrong ?</p>
    <p><br>
    </p>
    <p>And if it was sending successfully, through which interface would
      it be sending from?</p>
    <p>Since I was open multiple interfaces using pfring_open()</p>
    <p><br>
    </p>
    <p>10x</p>
    <p>Eitan.</p>
    <p><br>
    </p>
    <p> </p>
    <p><br>
    </p>
    <p><br>
    </p>
    <p><br>
    </p>
  </body>
</html>

--===============1193811701563282823==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Ntop-dev mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev
--===============1193811701563282823==--