Problems with an Intermediate NDISTAPI driver.

I’m trying to create an IM driver that talks Wan out the top miniport and
Ethernet out of the bottom protocol. (For PPPoE)

Basically, it registers, and dials OK, but after the PPPoE session is
established I get a few OID queries and then I get a DROP query. The Win2K
dialler displays ‘connecting to…’ then momentarily ‘all lines connected’ (I
assume that’s my WAN_LINE_UP and NdisMQueryComplete calls going off and then
‘Verifying username and password’ which immediately becomes ‘A device attached
to the system is not functioning’ at the same moment the DROP is issued.
It never called my WanSend fn’s either, or in fact any other function apart
from Query and Set…

Help?

Here’s the sequence of OID’s I observe when I dial.
MPQueryInformation: Query OID:OID_TAPI_GET_DEV_CAPS (7030110)!
MPQueryInformation: Query OID:OID_TAPI_OPEN (7030117)!
MPQueryInformation: Query OID:OID_TAPI_GET_DEV_CAPS (7030110)!
MPSetInformation: Query OID:OID_TAPI_SET_DEFAULT_MEDIA_DETECTION (703011f)!
MPSetInformation: Query OID:OID_TAPI_SET_STATUS_MESSAGES (7030122)!
MPQueryInformation: Query OID:OID_TAPI_MAKE_CALL (7030115)!
(I return PENDING here and do the PPPoE negotiation)

MPQueryInformation: Query OID:OID_TAPI_GET_CALL_INFO (703010e)!
MPQueryInformation: Query OID:OID_TAPI_GET_CALL_INFO (703010e)!
MPQueryInformation: Query OID:OID_TAPI_GET_CALL_STATUS (703010f)!
MPQueryInformation: Query OID:OID_TAPI_GET_CALL_INFO (703010e)!
MPQueryInformation: Query OID:OID_TAPI_GET_ID (7030113)!
MPSetInformation: Query OID:OID_TAPI_DROP (7030109)!
(??? That is an utter mystery. I’ve been through GET_ID and GET_CALL_INFO and
GET_CALL_STATUS repeatedly, referring to DDK and RASWAN, the NDIS3 WAN/TAPI
sample.)
MPSetInformation: Query OID:OID_TAPI_CLOSE_CALL (7030104)!
MPSetInformation: Query OID:OID_TAPI_CLOSE (7030103)!

I’ve been spinning on this point for nearly a fortnight. And help would be
thoroughly appreciated.

Thanx!


This message was sent using Dynamite Internet’s Web Mail System.
http://home.dynamite.com.au/


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

> I’m trying to create an IM driver that talks Wan out the top miniport and

Ethernet out of the bottom protocol. (For PPPoE)
[trim]

Just a quick followup to my message…

I turned on tracing for PPP, RASAPI32, RASMAN and RASTAPI…

This is the part of RASTAPI.log which can be compared to my OID trace before:

[868] 03:28:06:725: DwGetConnectInfo
[868] 03:28:06:725: DwGetIDInformation
[868] 03:28:06:725: DwGetIDInformation. 0
[868] 03:28:06:725: SizeRequired for CallID=0
[868] 03:28:06:725: CallIDSize=ConnectResponseSize=0
[868] 03:28:06:725: DwGetConnectInfo. 0x0
[868] 03:28:06:725: RasTapiCallback: DwGetConnectInforeturned 0x0
[868] 03:28:06:725: RasTapiCallback: Connected on ATM13-1
[868] 03:28:06:725: RasTapiCallback: Outgoing call
[832] 03:28:06:725: DeviceWork: ATM13-1. State = 4
[832] 03:28:06:745: DeviceWork: Changing state for ATM13-1 from 4 -> 3
[800] 03:28:06:765: PortConnect: ATM13-1
[800] 03:28:06:845:
[800] 03:28:06:855: PortDisconnect: ATM13-1

This seems to be the part of RASMAN where it decides my line is no good:
[800] 03:28:06:765: ConnectCompleteRequest: entered for port 4
[800] 03:28:06:845: D:\nt\private\net\routing\ras\rasman\rasman\request.c:
6317: port 4 state chg: prev=0, new=2
[800] 03:28:06:845: AllocBundle: pBundle=0x141d70
***[800] 03:28:06:845: MapCookieToEndPoint: failed with error 0x1f for port
ATM13-1
[800] 03:28:06:845: Connection Completed on port: ATM13-1, error code: 0
[800] 03:28:06:845: SetIoCompletionPortCommon: posting last event for port 4
[832] 03:28:06:855: OVEVT_RASMAN_POST_RECV_PKT
[832] 03:28:06:855: PostReceivePacket returned 0x3e5
[800] 03:28:06:855: ReferenceCustomCount
[800] 03:28:06:855: ReferenceCustomCount done. 0
[800] 03:28:06:855: RefConnection: 0x10000
[800] 03:28:06:855: RefConnection: ref on 0x10000 = 0
[800] 03:28:06:855: DwSendNotification(DISCONNECTING) returned 0x0
[800] 03:28:06:855: PortDisconnectRequest on ATM13-1
Connection=0x141ac0 ,RasmanReceiveFlags=0x0

IE at .765, TAPI was happy with the line, and gave it to RASMAN. RASMAN told
TAPI to pull the line down at .855.

I figure it’s the MapCookieToEndPoint (*'d) but I don’t know why it’s failing
or what it even is… Another PPPoE implementation got past that instruction,
and it works.

I hope that helps someone help me to find a solution to this problem.
(Sorry, my co-programmer’s fallen asleep and I’m typing sentances with my eyes
closed. :slight_smile:


Paul “TBBle” Hampson
xxxxx@Pobox.Com
“And in tonight’s ‘It could only happen in America’ story, a man comitted
suicide by jumping from the Empire State
Building…”


This message was sent using Dynamite Internet’s Web Mail System.
http://home.dynamite.com.au/


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