Why no internet when i configure NDIS mobile broadband changes ?

i am trying to support mobile broadband NDIS type for my application . For that i added some changes with the reference of Microsoft MB changes document . This is the link
i am using Filter driver and mini port driver . So i done major changes in INF file and Netbufferlist .

The INF changes are mentioned in this Microsoft link :

https://msdn.microsoft.com/en-us/library/windows/hardware/ff557185(v=vs.85).aspx

and the major Netbuffer list changes in miniport are mentioned in this link :

https://msdn.microsoft.com/en-us/library/windows/hardware/ff559110(v=vs.85).aspx

so with this i changed all :

*******************************************************************

INF changes ::


Filter INF

Before ::

[INSTALL.NDI]
HKR, Ndi, Service, 0, %MUXTUN.Name%
HKR, Ndi, CoServices, 0x00010000, %MUXTUN.Name%
HKR, Ndi, HelpText, 0, %MUXTUN.Description%
HKR, Ndi, FilterClass, , custom
HKR, Ndi, FilterType, 0x00010001, 0x00000002
HKR, Ndi\Interfaces, UpperRange, , “noupper”
HKR, Ndi\Interfaces, LowerRange, , “nolower”
HKR, Ndi\Interfaces, FilterMediaTypes, , “nolower, ethernet, wan, ppip”
HKR, Ndi, FilterRunType, 0x00010001, 1

After :


[INSTALL.NDI]
HKR, Ndi, Service, 0, %MUXTUN.Name%
HKR, Ndi, CoServices, 0x00010000, %MUXTUN.Name%
HKR, Ndi, HelpText, 0, %MUXTUN.Description%
HKR, Ndi, FilterClass, , custom
HKR, Ndi, FilterType, 0x00010001, 0x00000002
HKR, Ndi\Interfaces, UpperRange, , “noupper”
HKR, Ndi\Interfaces, LowerRange, , “nolower”
HKR, Ndi\Interfaces, FilterMediaTypes, , “nolower, ethernet, wan ,ppip”
HKR, Ndi, FilterRunType, 0x00010001, 1

i added ppip here …

*********************************************************

in Miniport INF changes :

Before :

[VNET.ndi]

Characteristics = 0x81 ; NCF_HAS_UI | NCF_VIRTUAL
*IfType = 0x06 ; IF_TYPE_ETHERNET_CSMACD
*MediaType = 0x00 ; NdisMedium802_3
*PhysicalMediaType = 0x0E ; NdisPhysicalMedium802_3

[VNET.Reg]

HKR, Ndi\Interfaces, UpperRange, 0, “ndis5”
HKR, Ndi\Interfaces, LowerRange, 0, “ethernet”

After:

[VNET.ndi]
Characteristics = 0x81 ; NCF_HAS_UI | NCF_VIRTUAL
*IfType = 0xF3 ; IF_TYPE_WWANPP
*MediaType = 0x09 ; NdisMediumWirelessWan
*PhysicalMediaType = 0x08 ; NdisPhysicalMediumWirelessWan
EnableDhcp = 1; enable DHCP
CopyFiles = VNET.CopyFiles
AddReg = VNET.Reg

[VNET.Reg]

HKR, Ndi\Interfaces, UpperRange, 0, “flpp4,flpp6”
HKR, Ndi\Interfaces, LowerRange, 0, “ppip”

******************************************************

And i added the NdisWirelssWan for FilterAttach ( ) Function like this :


if (
(AttachParameters->MiniportMediaType != NdisMedium802_3)
&& (AttachParameters->MiniportMediaType != NdisMediumWan)
&& (AttachParameters->MiniportMediaType != NdisMediumNative802_11)
&& (AttachParameters->MiniportMediaType != NdisMediumWirelessWan)
) {
status = NDIS_STATUS_INVALID_PARAMETER;
DbgPrintEx(DPFLTR_IHVNETWORK_ID, DPFLTR_TRACE_LEVEL, “!!! [%p] CFilter::Attach(): unsupported medium\n”, this);
goto VExit;
}


packet flows are done by using this link

https://msdn.microsoft.com/en-us/library/windows/hardware/ff559110(v=vs.85).aspx

but this makes the Huwaei mobile 3g network card adapter not detecting again . But when i change :

Huwaei mobile 3G network card properties –> Tcp/IPV4 properties — >

  1. Obtain an IP address Automatically
  2. Obtain DNS Server address Automatically

then it’s detecting in my application interface . But there is no network with that Dongle . Why ?

because this Dongle is working fine when both scenario with out installing my application . So i need to support the dongle in my application .

why there is no internet connection when i change the property ?? Is it any configuration missing ?

But when i change the same scenario

  1. Obtain an IP address Automatically
  2. Obtain DNS Server address Automatically

with out my application , i got internet . But when i changes these setting it’s detecting but no internet . any suggestions ?

What is the nature of your application?

I ask because your application is either something very specific to Mobile Broadband or it is very non-specific and simply is related to IP networking (which is the only network transport protocol that operates over Mobile Broadband).

If it is very specific to Mobile Broadband (case #1) then you must be associated with a radio vendor or a carrier.

If it is just simply some mojo that is twiddling IP then you should more than probably be writing a WFP filter and not something in NDIS that is trying to decipher the Mobile Broadband NIC edge.

Regards,
Dave Cattley