Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

immediate = True is ignored #44

Open
GoogleCodeExporter opened this issue Jun 14, 2015 · 0 comments
Open

immediate = True is ignored #44

GoogleCodeExporter opened this issue Jun 14, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?

1. Execute the following testcase while causing network traffic (for example 
with "ping 8.8.8.8"):

#!/usr/bin/python2
# coding=utf-8

import pcap

capture = pcap.pcap('eth0', 1, True, 5000, True)
while True:
    print(capture.next())


What is the expected output? What do you see instead?

capture.next() does only return every 5 seconds but with immediate = True it 
should return every time network traffic is created. The same happens also if 
capture.readpkts() is used instead but I'm not sure if this is maybe intended 
there.


What version of the product are you using? On what operating system?

Operating system: Linux 3.16.3
pypcap: 1.1.2


Please provide any additional information below.

Trying to reproduce this with libpcap in C works as expected (to go sure that 
for example the immediate mode is supported on the system).

Original issue reported on code.google.com by sworddragon2@gmail.com on 2 Oct 2014 at 7:13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant