Driver: Minor fixes.

This commit is contained in:
Nodir Temirkhodjaev 2018-01-08 12:23:26 +05:00
parent 29676840af
commit 671ba59502
2 changed files with 3 additions and 2 deletions

View File

@ -54,6 +54,7 @@ fort_prov_flow_unregister (void)
if (fort_prov_open(&engine)) if (fort_prov_open(&engine))
return; return;
FwpmFilterDeleteByKey0(engine, (GUID *) &FORT_GUID_FILTER_CLOSURE_V4);
FwpmFilterDeleteByKey0(engine, (GUID *) &FORT_GUID_FILTER_STREAM_V4); FwpmFilterDeleteByKey0(engine, (GUID *) &FORT_GUID_FILTER_STREAM_V4);
FwpmFilterDeleteByKey0(engine, (GUID *) &FORT_GUID_FILTER_DATAGRAM_V4); FwpmFilterDeleteByKey0(engine, (GUID *) &FORT_GUID_FILTER_DATAGRAM_V4);
FwpmFilterDeleteByKey0(engine, (GUID *) &FORT_GUID_FILTER_IN_TRANSPORT_V4); FwpmFilterDeleteByKey0(engine, (GUID *) &FORT_GUID_FILTER_IN_TRANSPORT_V4);
@ -200,7 +201,7 @@ fort_prov_flow_register (void)
| FWP_CALLOUT_FLAG_ALLOW_MID_STREAM_INSPECTION; | FWP_CALLOUT_FLAG_ALLOW_MID_STREAM_INSPECTION;
RtlZeroMemory(&cfilter4, sizeof(FWPM_FILTER0)); RtlZeroMemory(&cfilter4, sizeof(FWPM_FILTER0));
cfilter4.flags = filter_flags; cfilter4.flags = 0;
cfilter4.filterKey = FORT_GUID_FILTER_CLOSURE_V4; cfilter4.filterKey = FORT_GUID_FILTER_CLOSURE_V4;
cfilter4.layerKey = FWPM_LAYER_ALE_ENDPOINT_CLOSURE_V4; cfilter4.layerKey = FWPM_LAYER_ALE_ENDPOINT_CLOSURE_V4;
cfilter4.subLayerKey = FORT_GUID_SUBLAYER; cfilter4.subLayerKey = FORT_GUID_SUBLAYER;

View File

@ -396,7 +396,7 @@ fort_stat_flow_associate (PFORT_STAT stat, UINT64 flow_id,
*is_new_proc = TRUE; *is_new_proc = TRUE;
} }
speed_limit = fort_stat_group_speed_limit(stat, group_index); speed_limit = fort_stat_group_speed_limit(stat, group_index) != 0;
flow = fort_stat_flow_add(stat, flow_id, group_index, proc_index, flow = fort_stat_flow_add(stat, flow_id, group_index, proc_index,
is_udp, speed_limit); is_udp, speed_limit);