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
DAG: Use PCAP_ERROR_NO_SUCH_DEVICE more in dag_activate().
Under particular error conditions produce more useful error codes (for
the code that uses libpcap) and messages (for the users).
Before:
# tcpdump -ni dag0:1
tcpdump: dag_activate: tx (odd numbered) streams not supported for capture
# tcpdump -ni dag0:0
tcpdump: dag_attach_stream64: Cannot allocate memory
# tcpdump -ni dag0:8
tcpdump: dag_attach_stream64: Invalid argument
After:
# tcpdump -ni dag0:1
tcpdump: dag0:1: No such device exists
(dag_activate: tx (odd numbered) streams not supported for capture)
# tcpdump -ni dag0:0
tcpdump: dag0:0: No such device exists
(/dev/dag0 has no memory allocated to Rx stream 0)
# tcpdump -ni dag0:8
tcpdump: dag0:8: No such device exists
(/dev/dag0 has no Rx stream 8)
0 commit comments