Skip to content

Commit

Permalink
Used another NetCfgInstanceId for Npcap mode driver, so two drivers c…
Browse files Browse the repository at this point in the history
…an coexist.
  • Loading branch information
hsluoyz committed Jun 5, 2016
1 parent a535ed3 commit 9b18a9d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions packetWin7/npf/npf/Packet.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@
#pragma NDIS_INIT_FUNCTION(DriverEntry)
#endif // ALLOC_PRAGMA

#ifdef NPF_NPCAP_RUN_IN_WINPCAP_MODE
#define FILTER_UNIQUE_NAME L"{7daf2ac8-e9f6-4765-a842-f1f5d2501340}"
#else
#define FILTER_UNIQUE_NAME L"{7daf2ac8-e9f6-4765-a842-f1f5d2501341}"
#endif

#if DBG
// Declare the global debug flag for this driver.
Expand Down
2 changes: 1 addition & 1 deletion packetWin7/npf/npf/npcap.inf
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ DriverVer=05/15/2015,14.48.38.905
[Install]
AddReg=Inst_Ndi
Characteristics=0x40000
NetCfgInstanceId="{7daf2ac8-e9f6-4765-a842-f1f5d2501340}"
NetCfgInstanceId="{7daf2ac8-e9f6-4765-a842-f1f5d2501341}"
Copyfiles = npf.copyfiles.sys

[SourceDisksNames]
Expand Down
2 changes: 1 addition & 1 deletion packetWin7/npf/npf/npcap_wfp.inf
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ DriverVer=05/15/2015,14.48.38.905
[Install]
AddReg=Inst_Ndi
Characteristics=0x40000
NetCfgInstanceId="{7daf2ac8-e9f6-4765-a842-f1f5d2501340}"
NetCfgInstanceId="{7daf2ac8-e9f6-4765-a842-f1f5d2501341}"
Copyfiles = npf.copyfiles.sys

[SourceDisksNames]
Expand Down
2 changes: 1 addition & 1 deletion packetWin7/npf/npf/npcap_wifi.inf
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ DriverVer=05/15/2015,14.48.38.905
[Install]
AddReg=Inst_Ndi
Characteristics=0x40000
NetCfgInstanceId="{7daf2ac8-e9f6-4765-a842-f1f5d2501340}"
NetCfgInstanceId="{7daf2ac8-e9f6-4765-a842-f1f5d2501341}"
Copyfiles = npf.copyfiles.sys

[SourceDisksNames]
Expand Down

0 comments on commit 9b18a9d

Please sign in to comment.