I got it
Because our IM driver is binding to NDISWAN ,and the mediun type our IM driver deal with is NdisMedium802_3,so
we return this type to upper transport protocol,fine,it seems so easy.
Thank you Thomas F. Divine
1.) In Inf File: add “wan” to FilterMediaTypes
2.) When calling NdisOpenAdapter, include NdisMediumWan in the MediumArray.
3.) Save the medium reported by the lower MP.
4.) If the medium reported by the lower MP is NdisMediumWan, then you are
binding to WAN. In this case you do NOT simply return the lower MP’s medium
up to the higher-level protocol. Instead, you modify the query results to
report NdisMedium802_3 to the calling protocol.That’s about it, except for learning (for yourself…) how to intercept,
interpret and use the magic numbers in the source and destination MAC
addresses…Good luck,
Thomas F. Divine
???y˫???+.n?+???u?ڲ˛??^r*D???kN???r??zǧu??jy???^j???ׯ??? 0?j?b??(??(