handle->md.stat should be zeroed out when we initially allocated the
pcap_t, but, as long as we're initializing ps_drop and ps_recv, initialize ps_ifdrop.
This commit is contained in:
parent
1d47ee92c3
commit
4b9a27475e
|
@ -803,6 +803,7 @@ static int dag_activate(pcap_t* handle)
|
||||||
handle->cleanup_op = dag_platform_cleanup;
|
handle->cleanup_op = dag_platform_cleanup;
|
||||||
handle->md.stat.ps_drop = 0;
|
handle->md.stat.ps_drop = 0;
|
||||||
handle->md.stat.ps_recv = 0;
|
handle->md.stat.ps_recv = 0;
|
||||||
|
handle->md.stat.ps_ifdrop = 0;
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
#ifdef HAVE_DAG_STREAMS_API
|
#ifdef HAVE_DAG_STREAMS_API
|
||||||
|
|
Reference in New Issue