I am Checking Wireless Mobile broadband Adapter Connectivity on my VPN application . I am using NDIS Wireless adapter and my VPN has NDIS 6.2 LWF driver , miniport driver .
This Mobile broadband Adapter is NdisMediumWirelessWan Medium type . My VPN application is working pretty well on Ethernet , Wifi adapter . Now i can't connect with NDIS Mobile Broadband adapter . I print all packet dumps when sending over filter driver .I compare this dump with working Wifi adapter . But i don't know why i can't get full packet size . any idea ?
- Wifi packet :
Wifi Sending packet ( Working code 
Wifi MAC Address : 81:17:35:AF:94:25
Filter::PacketOutput() start
---packet dump start---
Filter::PacketOutput(): 81:17:35:AF:94:25->FF:FF:FF:FF:FF:FF 0806
--packet dump end --
Filter::PacketOutput(): exited
Filter::SendNetBufferLists():
Filter::OutgoingNetBufferInput():
---packet dump start---
packet length = 355
(pBuffer[12] == 0x08) && (pBuffer[13] == 0x00)
81:17:35:AF:94:25->FF:FF:FF:FF:FF:FF 0800 17 0.0.0.0:68->255.255.255.255:67
--packet dump end --
calling InterfaceManager::OutgoingPacketInput
InterfaceManager::OutgoingPacketInput():
PacketFilter::Filter
-- packet dump start --
pEthHeader->nProto == ETH_PROTO_IPV4
OUT 81:17:35:AF:94:25-> FF:FF:FF:FF:FF:FF IPV4 UDP 0.0.0.0:68 -> 255.255.255.255:67
filterRecord.nEthProto == ETH_PROTO_IPV4
--packet dump end ---
2 . But in case of Wireless adapter ( NDIS Dongle)
Dongle : sending packet
Dongle MAC address : 00:1C:11:1G:00:00
Filter::PacketOutput() start
---packet dump start---
Filter::PacketOutput(): 00:1C:11:1G:00:00->FF:FF:FF:FF:FF:FF 0806
--packet dump end --
Filter::PacketOutput(): exited
Filter::SendNetBufferLists():
Filter::OutgoingNetBufferInput():
---packet dump start---
packet length = 62
Filter::OutgoingNetBufferInput(): 00:00:80:11:BE:9D->45:00:00:3E:50:0B 0AAD
--packet dump end --
calling InterfaceManager::OutgoingPacketInput
InterfaceManager::OutgoingPacketInput():
PacketFilter::Filter
-- packet dump start --
-- Not ipv4 , ipv6 & arp --
OUT 00:00:80:11:BE:9D -> 45:00:00:3E:50:0B AD0A
--packet dump end ---
After analyzing these 2 logs , i can see that i can't get any IPV4 , IPV6 (TCP/UDP) packets
on dongle interface . But in case of Wifi , i am getting .
And the size of packet is different in case of dongle when i compared with Wifi .
Mobile broadband adapter is sending RAW IP instead of ether net packet . That may be the reason ?
How can i fix this problem as per the NDIS perspective ? Any idea or suggestions ?