Comments (2)
update: i ran a tcpdump capture with and without -K. both displayed the trailer, so -K makes no difference.
deep in the documentation for dpkt i found an example that had an additional argument "nano" in their Writer function. replacing the pcapy dumper with the dpkt writer resolves my issue with the timestamps in the header being reported only in microseconds. What this tells me, is that the reading of the binary data with the pcapy.open_live() does not need to be looked at; it is only the dumper that needs an extra argument.
example working function in dpkt:
dumper = dpkt.pcap.Writer(open(path + filename)+'.pcap', 'wb+'),nano=True)
dumper.writepkt(ethernet)
from pcapy.
@mikewalshchicago Thanks for the tip.
from pcapy.
Related Issues (20)
- error LNK2001
- Making pcapy.html browsable on Github HOT 1
- Installation failing with pcapy 0.11.2 HOT 2
- Support monitor mode HOT 1
- Make pcapy Reader object selectable
- No support for A band/5 Ghz channels
- Tests fail on python 3.7 HOT 1
- On windows findalldevs() returns unintelligible results HOT 7
- Activate returns a warning/error code integer
- pip3 install pcapy==0.11.4 failed HOT 2
- Capture only incoming packets
- pcapy 0.11.5 missing from PyPI HOT 1
- dispatch not working HOT 1
- pcap_open_offline_with_tstamp_precision support
- Error when building HOT 2
- Not working on Python3.10 HOT 3
- 0.11.5: test suite is failing HOT 1
- AttributeError: module 'distutils.sysconfig' has no attribute '_init_posix'
- distutils module is deprecated and will be removed in Python 3.12 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pcapy.