mirror of
https://github.com/tnodir/fort
synced 2024-11-15 06:15:15 +00:00
Driver: Minor fixes.
This commit is contained in:
parent
29676840af
commit
671ba59502
@ -54,6 +54,7 @@ fort_prov_flow_unregister (void)
|
||||
if (fort_prov_open(&engine))
|
||||
return;
|
||||
|
||||
FwpmFilterDeleteByKey0(engine, (GUID *) &FORT_GUID_FILTER_CLOSURE_V4);
|
||||
FwpmFilterDeleteByKey0(engine, (GUID *) &FORT_GUID_FILTER_STREAM_V4);
|
||||
FwpmFilterDeleteByKey0(engine, (GUID *) &FORT_GUID_FILTER_DATAGRAM_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;
|
||||
|
||||
RtlZeroMemory(&cfilter4, sizeof(FWPM_FILTER0));
|
||||
cfilter4.flags = filter_flags;
|
||||
cfilter4.flags = 0;
|
||||
cfilter4.filterKey = FORT_GUID_FILTER_CLOSURE_V4;
|
||||
cfilter4.layerKey = FWPM_LAYER_ALE_ENDPOINT_CLOSURE_V4;
|
||||
cfilter4.subLayerKey = FORT_GUID_SUBLAYER;
|
||||
|
@ -396,7 +396,7 @@ fort_stat_flow_associate (PFORT_STAT stat, UINT64 flow_id,
|
||||
*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,
|
||||
is_udp, speed_limit);
|
||||
|
Loading…
Reference in New Issue
Block a user