Skip to content

capture() only emits tv_sec part of timestamp header #26

@pere3

Description

@pere3

Hello, caizhengxin! Thanks for an amazingly fast Cython implementation of libpcap for Python.
I'm currently using this library in my testing framework for network devices, it's able to capture near 9k parallel udp streams on unique ip destinations.

But it has one flaw - it only emits tv_sec part of packet timestamp in capture() method.
I've able to fix this with adding tv_usec part to it - #25.

I'm currently using my own fork with this fix, but it would be much appreciated if this changes can be applied to the upstream so i can use global version. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions