OID_GEN_MEDIA_CONNECT_STATUS in Ndis4.0 & Ndis5.0

Hi all,
Straight to the problem…

====================================================
My Observation from my Ndis Miniport Driver for all
Windows flavours…

  1. In Ndis 5.0, Ndis queries
    OID_GEN_MEDIA_CONNECT_STATUS and if Link is in
    NdisMediaStateDisconnected state doesn’t send out an
    MiniportSend Requests.
  2. But in Ndis4.0, Ndis never queries
    OID_GEN_MEDIA_CONNECT_STATUS and MiniportSend is
    called even when Link is in NdisMediaStateDisconnected
    state.
    ============
    My doubt…
    ============
    a) Why is Ndis4.0 not checking for linkstatus before
    it calls MiniportSend ?
    b) Is there any means by which i can force Ndis not to
    call MiniportSend unless link is active ?

Thanx in advance
ME


Do You Yahoo!?
Find the one for you at Yahoo! Personals
http://personals.yahoo.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

OID_GEN_MEDIA_CONNECT_STATUS does not exist in NDIS 4.0, and no NT .4.0
system components will call it.

Good luck,

Thomas F. Divine

PCAUSA - Toolkits & Resources For Network Software Developers
NDIS Protocol - NDIS Intermediate - TDI Client/Filter
http: - http:

----- Original Message -----
From: “ME”
To: “NT Developers Interest List”
Sent: Tuesday, November 13, 2001 12:12 AM
Subject: [ntdev] OID_GEN_MEDIA_CONNECT_STATUS in Ndis4.0 & Ndis5.0

> Hi all,
> Straight to the problem…
>
> ====================================================
> My Observation from my Ndis Miniport Driver for all
> Windows flavours…
> ====================================================
> 1) In Ndis 5.0, Ndis queries
> OID_GEN_MEDIA_CONNECT_STATUS and if Link is in
> NdisMediaStateDisconnected state doesn’t send out an
> MiniportSend Requests.
> 2) But in Ndis4.0, Ndis never queries
> OID_GEN_MEDIA_CONNECT_STATUS and MiniportSend is
> called even when Link is in NdisMediaStateDisconnected
> state.
> ============
> My doubt…
> ============
> a) Why is Ndis4.0 not checking for linkstatus before
> it calls MiniportSend ?
> b) Is there any means by which i can force Ndis not to
> call MiniportSend unless link is active ?
>
> Thanx in advance
> ME
>


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com</http:></http:>

Hi Thomas,
Given below is excerpt from NT4 DDK about OID_GEN_MEDIA_CONNECT_STATUS,
Do U mean to say they have documented it but not supporting it ?!

OID_GEN_MEDIA_CONNECT_STATUS
This OID requests the miniport to return the connection status of the NIC
on the network as one of the following system-defined values:

NdisMediaStateConnected
NdisMediaStateDisconnected

Regards
ME

OID_GEN_MEDIA_CONNECT_STATUS does not exist in NDIS 4.0, and no NT .4.0
system components will call it.

Good luck,

Thomas F. Divine

PCAUSA - Toolkits & Resources For Network Software Developers
NDIS Protocol - NDIS Intermediate - TDI Client/Filter
http: - http:

----- Original Message -----
From: “ME”
To: “NT Developers Interest List”
Sent: Tuesday, November 13, 2001 12:12 AM
Subject: [ntdev] OID_GEN_MEDIA_CONNECT_STATUS in Ndis4.0 & Ndis5.0

> Hi all,
> Straight to the problem…
>
> ====================================================
> My Observation from my Ndis Miniport Driver for all
> Windows flavours…
> ====================================================
> 1) In Ndis 5.0, Ndis queries
> OID_GEN_MEDIA_CONNECT_STATUS and if Link is in
> NdisMediaStateDisconnected state doesn’t send out an
> MiniportSend Requests.
> 2) But in Ndis4.0, Ndis never queries
> OID_GEN_MEDIA_CONNECT_STATUS and MiniportSend is
> called even when Link is in NdisMediaStateDisconnected
> state.
> ============
> My doubt…
> ============
> a) Why is Ndis4.0 not checking for linkstatus before
> it calls MiniportSend ?
> b) Is there any means by which i can force Ndis not to
> call MiniportSend unless link is active ?
>
> Thanx in advance
> ME


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com</http:></http:>

My mistake for sure.

Yes it exists in NT 4.0, and is listed as mandatory.

However, it is not actually implemented in many NDIS 4.0 miniports. For
example, it is not implemented in the ne2000 or ne3200 Microsoft DDK samples
for NDIS 4.0.

I never actually saw it used until Windows 2000.

Even there it is actually a problem in some cases. Before it was used you
could actually pull the Ethernet cable while a TCP/IP operation was in
progress - and TCP/IP would usually recover. Now, thanks to the widespread
use of this feature, TCP/IP operations abort when the cable is unplugged.

That’s progress???

Regards,

Thomas F. Divine

PCAUSA - Toolkits & Resources For Network Software Developers
NDIS Protocol - NDIS Intermediate - TDI Client/Filter
http: - http:

----- Original Message -----
From:
To: “NT Developers Interest List”
Sent: Tuesday, November 13, 2001 12:44 AM
Subject: [ntdev] Re: OID_GEN_MEDIA_CONNECT_STATUS in Ndis4.0 & Ndis5.0

> Hi Thomas,
> Given below is excerpt from NT4 DDK about OID_GEN_MEDIA_CONNECT_STATUS,
> Do U mean to say they have documented it but not supporting it ?!
> ===========================
> OID_GEN_MEDIA_CONNECT_STATUS
> This OID requests the miniport to return the connection status of the NIC
> on the network as one of the following system-defined values:
>
> NdisMediaStateConnected
> NdisMediaStateDisconnected
> ===========================
>
> Regards
> ME
>
> OID_GEN_MEDIA_CONNECT_STATUS does not exist in NDIS 4.0, and no NT .4.0
> system components will call it.
>
> Good luck,
>
> Thomas F. Divine
>
> PCAUSA - Toolkits & Resources For Network Software Developers
> NDIS Protocol - NDIS Intermediate - TDI Client/Filter
> http: - http:
>
>
> ----- Original Message -----
> From: “ME”
> To: “NT Developers Interest List”
> Sent: Tuesday, November 13, 2001 12:12 AM
> Subject: [ntdev] OID_GEN_MEDIA_CONNECT_STATUS in Ndis4.0 & Ndis5.0
>
>
> > Hi all,
> > Straight to the problem…
> >
> > ====================================================
> > My Observation from my Ndis Miniport Driver for all
> > Windows flavours…
> > ====================================================
> > 1) In Ndis 5.0, Ndis queries
> > OID_GEN_MEDIA_CONNECT_STATUS and if Link is in
> > NdisMediaStateDisconnected state doesn’t send out an
> > MiniportSend Requests.
> > 2) But in Ndis4.0, Ndis never queries
> > OID_GEN_MEDIA_CONNECT_STATUS and MiniportSend is
> > called even when Link is in NdisMediaStateDisconnected
> > state.
> > ============
> > My doubt…
> > ============
> > a) Why is Ndis4.0 not checking for linkstatus before
> > it calls MiniportSend ?
> > b) Is there any means by which i can force Ndis not to
> > call MiniportSend unless link is active ?
> >
> > Thanx in advance
> > ME
>
> —
> You are currently subscribed to ntdev as: xxxxx@pcausa.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com</http:></http:></http:></http:>

Ok then! i’ll check for link status in my driver in my MiniportSend & drop
the pkts if link is down for Ndis4.0 alone.
Any Comments ?

Regards
ME

-----Original Message-----
From: Thomas F. Divine [mailto:xxxxx@pcausa.com]
Sent: Tuesday, November 13, 2001 11:37 AM
To: NT Developers Interest List
Subject: [ntdev] Re: OID_GEN_MEDIA_CONNECT_STATUS in Ndis4.0 & Ndis5.0

My mistake for sure.

Yes it exists in NT 4.0, and is listed as mandatory.

However, it is not actually implemented in many NDIS 4.0
miniports. For
example, it is not implemented in the ne2000 or ne3200
Microsoft DDK samples
for NDIS 4.0.

I never actually saw it used until Windows 2000.

Even there it is actually a problem in some cases. Before it
was used you
could actually pull the Ethernet cable while a TCP/IP operation was in
progress - and TCP/IP would usually recover. Now, thanks to
the widespread
use of this feature, TCP/IP operations abort when the cable
is unplugged.

That’s progress???

Regards,

Thomas F. Divine

PCAUSA - Toolkits & Resources For Network Software Developers
NDIS Protocol - NDIS Intermediate - TDI Client/Filter
http: - http:
>
>
> ----- Original Message -----
> From:
> To: “NT Developers Interest List”
> Sent: Tuesday, November 13, 2001 12:44 AM
> Subject: [ntdev] Re: OID_GEN_MEDIA_CONNECT_STATUS in Ndis4.0 & Ndis5.0
>
>
> > Hi Thomas,
> > Given below is excerpt from NT4 DDK about
> OID_GEN_MEDIA_CONNECT_STATUS,
> > Do U mean to say they have documented it but not supporting it ?!
> > ===========================
> > OID_GEN_MEDIA_CONNECT_STATUS
> > This OID requests the miniport to return the connection
> status of the NIC
> > on the network as one of the following system-defined values:
> >
> > NdisMediaStateConnected
> > NdisMediaStateDisconnected
> > ===========================
> >
> > Regards
> > ME
> >
> > OID_GEN_MEDIA_CONNECT_STATUS does not exist in NDIS 4.0,
> and no NT .4.0
> > system components will call it.
> >
> > Good luck,
> >
> > Thomas F. Divine
> >
> > PCAUSA - Toolkits & Resources For Network Software Developers
> > NDIS Protocol - NDIS Intermediate - TDI Client/Filter
> > http: - http:
> >
> >
> > ----- Original Message -----
> > From: “ME”
> > To: “NT Developers Interest List”
> > Sent: Tuesday, November 13, 2001 12:12 AM
> > Subject: [ntdev] OID_GEN_MEDIA_CONNECT_STATUS in Ndis4.0 & Ndis5.0
> >
> >
> > > Hi all,
> > > Straight to the problem…
> > >
> > > ====================================================
> > > My Observation from my Ndis Miniport Driver for all
> > > Windows flavours…
> > > ====================================================
> > > 1) In Ndis 5.0, Ndis queries
> > > OID_GEN_MEDIA_CONNECT_STATUS and if Link is in
> > > NdisMediaStateDisconnected state doesn’t send out an
> > > MiniportSend Requests.
> > > 2) But in Ndis4.0, Ndis never queries
> > > OID_GEN_MEDIA_CONNECT_STATUS and MiniportSend is
> > > called even when Link is in NdisMediaStateDisconnected
> > > state.
> > > ============
> > > My doubt…
> > > ============
> > > a) Why is Ndis4.0 not checking for linkstatus before
> > > it calls MiniportSend ?
> > > b) Is there any means by which i can force Ndis not to
> > > call MiniportSend unless link is active ?
> > >
> > > Thanx in advance
> > > ME


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com</http:></http:></http:></http:>

Why don’t you do that for all NDIS versions for consistency?

Just toss it and bump OID_GEN_XMIT_ERROR counter…

Thos

----- Original Message -----
From:
To: “NT Developers Interest List”
Sent: Tuesday, November 13, 2001 1:38 AM
Subject: [ntdev] Re: OID_GEN_MEDIA_CONNECT_STATUS in Ndis4.0 & Ndis5.0

> Ok then! i’ll check for link status in my driver in my MiniportSend & drop
> the pkts if link is down for Ndis4.0 alone.
> Any Comments ?
>
> Regards
> ME
> > -----Original Message-----
> > From: Thomas F. Divine [mailto:xxxxx@pcausa.com]
> > Sent: Tuesday, November 13, 2001 11:37 AM
> > To: NT Developers Interest List
> > Subject: [ntdev] Re: OID_GEN_MEDIA_CONNECT_STATUS in Ndis4.0 & Ndis5.0
> >
> >
> > My mistake for sure.
> >
> > Yes it exists in NT 4.0, and is listed as mandatory.
> >
> > However, it is not actually implemented in many NDIS 4.0
> > miniports. For
> > example, it is not implemented in the ne2000 or ne3200
> > Microsoft DDK samples
> > for NDIS 4.0.
> >
> > I never actually saw it used until Windows 2000.
> >
> > Even there it is actually a problem in some cases. Before it
> > was used you
> > could actually pull the Ethernet cable while a TCP/IP operation was in
> > progress - and TCP/IP would usually recover. Now, thanks to
> > the widespread
> > use of this feature, TCP/IP operations abort when the cable
> > is unplugged.
> >
> > That’s progress???
> >
> > Regards,
> >
> > Thomas F. Divine
> >
> > PCAUSA - Toolkits & Resources For Network Software Developers
> > NDIS Protocol - NDIS Intermediate - TDI Client/Filter
> > http: - http:
> >
> >
> > ----- Original Message -----
> > From:
> > To: “NT Developers Interest List”
> > Sent: Tuesday, November 13, 2001 12:44 AM
> > Subject: [ntdev] Re: OID_GEN_MEDIA_CONNECT_STATUS in Ndis4.0 & Ndis5.0
> >
> >
> > > Hi Thomas,
> > > Given below is excerpt from NT4 DDK about
> > OID_GEN_MEDIA_CONNECT_STATUS,
> > > Do U mean to say they have documented it but not supporting it ?!
> > > ===========================
> > > OID_GEN_MEDIA_CONNECT_STATUS
> > > This OID requests the miniport to return the connection
> > status of the NIC
> > > on the network as one of the following system-defined values:
> > >
> > > NdisMediaStateConnected
> > > NdisMediaStateDisconnected
> > > ===========================
> > >
> > > Regards
> > > ME
> > >
> > > OID_GEN_MEDIA_CONNECT_STATUS does not exist in NDIS 4.0,
> > and no NT .4.0
> > > system components will call it.
> > >
> > > Good luck,
> > >
> > > Thomas F. Divine
> > >
> > > PCAUSA - Toolkits & Resources For Network Software Developers
> > > NDIS Protocol - NDIS Intermediate - TDI Client/Filter
> > > http: - http:
> > >
> > >
> > > ----- Original Message -----
> > > From: “ME”
> > > To: “NT Developers Interest List”
> > > Sent: Tuesday, November 13, 2001 12:12 AM
> > > Subject: [ntdev] OID_GEN_MEDIA_CONNECT_STATUS in Ndis4.0 & Ndis5.0
> > >
> > >
> > > > Hi all,
> > > > Straight to the problem…
> > > >
> > > > ====================================================
> > > > My Observation from my Ndis Miniport Driver for all
> > > > Windows flavours…
> > > > ====================================================
> > > > 1) In Ndis 5.0, Ndis queries
> > > > OID_GEN_MEDIA_CONNECT_STATUS and if Link is in
> > > > NdisMediaStateDisconnected state doesn’t send out an
> > > > MiniportSend Requests.
> > > > 2) But in Ndis4.0, Ndis never queries
> > > > OID_GEN_MEDIA_CONNECT_STATUS and MiniportSend is
> > > > called even when Link is in NdisMediaStateDisconnected
> > > > state.
> > > > ============
> > > > My doubt…
> > > > ============
> > > > a) Why is Ndis4.0 not checking for linkstatus before
> > > > it calls MiniportSend ?
> > > > b) Is there any means by which i can force Ndis not to
> > > > call MiniportSend unless link is active ?
> > > >
> > > > Thanx in advance
> > > > ME


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com</http:></http:></http:></http:>

OK!
And Thanx for sparing U’r time

Regards
ME

-----Original Message-----
From: Thomas F. Divine [mailto:xxxxx@pcausa.com]
Sent: Tuesday, November 13, 2001 12:49 PM
To: NT Developers Interest List
Subject: [ntdev] Re: OID_GEN_MEDIA_CONNECT_STATUS in Ndis4.0 & Ndis5.0

Why don’t you do that for all NDIS versions for consistency?

Just toss it and bump OID_GEN_XMIT_ERROR counter…

Thos


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com