Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > Is stripping the VLAN header mandatory in NDIS 5.1 ?

Reply
Thread Tools Display Modes

Is stripping the VLAN header mandatory in NDIS 5.1 ?

 
 
Abhijit Mmirajkar
Guest
Posts: n/a

 
      05-31-2011
Hi,

We have a NDIS 5.1 miniport driver for Windows XP (WHQL certified) in
which we do NOT support VLAN (802.1P and 802.1Q), i.e. we do not set
either of the flags NDIS_MAC_OPTION_8021P_PRIORITY and
NDIS_MAC_OPTION_8021Q_VLAN in query to OID_GEN_MAC_OPTIONS, neither do
we include OID_GEN_VLAN_ID in response to OID_GEN_SUPPORTED_LIST.
All this is optional as per the DDK and we chose not to support it.

Recently we noticed an issue where we observed that if we happen to
receive a packet having VLAN tag (0x0081) and indicate it to upper
layers like any other packet, then NDIS does not return it back to us,
i.e. does not call MiniportReturnPacket.
However if we set the per packet information (using the macro
NDIS_PER_PACKET_INFO_FROM_PACKET) for InfoType Ieee8021QInfo and strip
the VLAN header from the packet before indicating, then NDIS
subsequently returns it back to us!

So is it necessary even for a non-VLAN aware miniport driver to
process VLAN packets in receive path?
Actually in this case there was no query or set OID for VLAN_ID, so
such packet should ideally be dropped. Is that the right
implementation in this case?
Thanks,

Regards,
Abhijit

 
Reply With Quote
 
 
 
 
Abhijit Mmirajkar
Guest
Posts: n/a

 
      06-01-2011
Hi,

I found out that only stripping of the VLAN tag is sufficient for NDIS
to return the packet back to us.

Btw I would also like to know, if we want to provide support for VLAN
then providing only the miniport driver is sufficient or an IM driver
is also required (like MUX sample)?

Regards,
Abhijit


On May 31, 11:30*am, Abhijit Mmirajkar <abhijit.miraj...@gmail.com>
wrote:
> Hi,
>
> We have a NDIS 5.1 miniport driver for Windows XP (WHQL certified) in
> which we do NOT support VLAN (802.1P and 802.1Q), i.e. we do not set
> either of the flags NDIS_MAC_OPTION_8021P_PRIORITY and
> NDIS_MAC_OPTION_8021Q_VLAN in query to OID_GEN_MAC_OPTIONS, neither do
> we include OID_GEN_VLAN_ID in response to OID_GEN_SUPPORTED_LIST.
> All this is optional as per the DDK and we chose not to support it.
>
> Recently we noticed an issue where we observed that if we happen to
> receive a packet having VLAN tag (0x0081) and indicate it to upper
> layers like any other packet, then NDIS does not return it back to us,
> i.e. does not call MiniportReturnPacket.
> However if we set the per packet information (using the macro
> NDIS_PER_PACKET_INFO_FROM_PACKET) for InfoType Ieee8021QInfo and strip
> the VLAN header from the packet before indicating, then NDIS
> subsequently returns it back to us!
>
> So is it necessary even for a non-VLAN aware miniport driver to
> process VLAN packets in receive path?
> Actually in this case there was no query or set OID for VLAN_ID, so
> such packet should ideally be dropped. Is that the right
> implementation in this case?
> Thanks,
>
> Regards,
> Abhijit


 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Invalid Header Fields Miles Li [MSFT] Windows Small Business Server 30 09-28-2011 07:32 AM
Re: IE* View Source Broken thomas Internet Explorer 7 03-11-2011 02:32 PM
NDIS 5.1 IM Driver on Windows Server 2008 failing after sleep Sasha Levin Windows Vista Drivers 3 11-16-2009 01:19 PM
Re: Incorrect server name Ace Fekay [MCT] Windows Server 4 10-28-2009 02:17 PM
Stop Error 0x0000007b Louis LeBrun Windows Vista Installation 17 07-05-2006 09:00 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59