|
Home > Archive > Unix Programming > October 2005 > pcap multi
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Radosław HORODNICZY 2005-10-25, 7:48 am |
| I'm begginer in Unix so do not kill me.
I try to write sniffer for catch packets from: eth0,eth1,ethX
on the same time.
pcap_loop sets function to handle packets (but it block program until X
packets arrives)
What have I do to make paraell execution pcap_loop for eth1 and eth3 ?
| |
| Robert Harris 2005-10-25, 7:48 am |
| Radosław HORODNICZY wrote:
> I'm begginer in Unix so do not kill me.
>
> I try to write sniffer for catch packets from: eth0,eth1,ethX
> on the same time.
>
> pcap_loop sets function to handle packets (but it block program until X
> packets arrives)
>
> What have I do to make paraell execution pcap_loop for eth1 and eth3 ?
>
>
>
you need to use select or poll system/library calls.
"man select" and "man poll" will tell you all about them.
Robert
|
|
|
|
|