Multiple interfaces

Eitan Michaelson <[email protected]> Thu, 4 Jul 2019 18:20:09 +0300
Newsgroups gmane.linux.ntop.devel
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--===============5598897471061530695==
Content-Type: multipart/alternative;
	boundary="------------78789F7883D81D0F35C813F2"
Content-Language: en-US

This is a multi-part message in MIME format.
--------------78789F7883D81D0F35C813F2
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit

Hello

Suppose I would like to add few interfaces user /pfring_open() /
and then wait for incoming packets from any of them using 
/pfring_recv()/ (wait_for_incoming_packet = 1).
The current method I'm testing is looping on all the attached interfaces 
one after another, in a non blocking mode (wait_for_incoming_packet = 0).
While it's working, It's a CPU intense method.

Is there a better way to collect packets from multiple interfaces?

Thank you,

Eitan.





--------------78789F7883D81D0F35C813F2
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit

<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello<br>
    <br>
    Suppose I would like to add few interfaces user <i>pfring_open() </i><br>
    and then wait for incoming packets from any of them using <i>pfring_recv()</i>
    (wait_for_incoming_packet = 1).<br>
    The current method I'm testing is looping on all the attached
    interfaces one after another, in a non blocking mode
    (wait_for_incoming_packet = 0). <br>
    While it's working, It's a CPU intense method.
    <p>Is there a better way to collect packets from multiple
      interfaces?<br>
    </p>
    <p>Thank you,</p>
    <p>Eitan.<br>
    </p>
    <p><br>
    </p>
    <p><br>
    </p>
    <p><br>
    </p>
  </body>
</html>

--------------78789F7883D81D0F35C813F2--

--===============5598897471061530695==
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
--===============5598897471061530695==--