You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
driver/rawnetworkinterfacedriver: implement live streaming
Adds support for live streaming of captured packets such that they can
be processed in real time by tests instead of needing to capture for a
set period of time time and do post-processing.
As an example:
```python
import dpkt
drv = target.get_driver("RawNetworkInterfaceDriver")
with drv.record(None, timeout=60) as p:
pcap = dpkt.pcap.Reader(p.stdout)
for timestamp, buf in pcap:
eth = dpkt.ethernet.Ethernet(buf)
....
```
Signed-off-by: Joshua Watt <[email protected]>
Signed-off-by: Bastian Krause <[email protected]>
0 commit comments