Closed GoogleCodeExporter closed 9 years ago
Hey, Pavel,
Thanks for the report! I'll try to figure this out today and update the issue
accordingly.
Can you tell me what version of PF_RING you have installed?
--Graeme
Original comment by gconnell@google.com
on 16 Jun 2014 at 4:48
Hello!
I'm using latest stable version of PF_RING 6.0.1.
Original comment by pavel.odintsov
on 16 Jun 2014 at 5:02
Hello again!
I suppose this bug related with pf_ring_open strange behaviour.
I added this code to my current working project
(https://github.com/FastVPSEestiOu/fastnetmon):
printf("pf_handle: %p strerror: %s errno: %d\n", pf_ring_descr,
strerror(errno), errno);
pf_ring_descr = pfring_open(dev, snaplen, flags);
printf("pf_handle: %p strerror: %s errno: %d\n", pf_ring_descr,
strerror(errno), errno);
And got very strange output:
pf_handle: (nil) strerror: Success errno: 0
pf_handle: 0x9d02e0 strerror: Operation not supported errno: 95
In gopacket/pfring code you relayed on errno variable but it consist invalid
value. Maybe you can check only pf_ring_open() return value and do not check
errno?
Original comment by pavel.odintsov
on 16 Jun 2014 at 6:00
Hello!
This bug was in PF_RING library, developers approve it and fixed it. It's fixed
now in svn version. I tried PF_RING version from subversion and all works fine
for me :)
Original comment by pavel.odintsov
on 16 Jun 2014 at 7:24
Thanks for the update. Marking as fixed.
Original comment by gconnell@google.com
on 16 Jun 2014 at 7:27
Original issue reported on code.google.com by
pavel.odintsov
on 14 Jun 2014 at 10:18