Article View: comp.sys.ibm.pc.net
Article #10Packet Driver Programming Problem
From: Russell Nelson
Date: Tue, 17 Nov 1992 14:17
Date: Tue, 17 Nov 1992 14:17
35 lines
2061 bytes
2061 bytes
In article <1e7eshINNhvt@flop.ENGR.ORST.EDU> densond@xanth.CS.ORST.EDU writes:
I am trying to learn how to program using a packet driver, and am
having a very difficult time trying to set up a handler using the
"access_type" call to packet driver. I have some code below,
which has been reworked numerous times, always with the same
results. I get a valid handler back with no errors, but when I
ping my pc from a unix box, the far assembly procedure MyRoutine
does not get called. (I am using Turbo Pascal 6.0, BTW. I know C
would be better, but I do not have a decent C compiler at home
[yet]).
Well, first of all, do you have your packet driver installed
correctly? If not, you'll never get anything. Try running pktall
and see if it prints anything.
A few notes:
I have tried TypeLen (CX) set to 0, which, according the packet driver
specs, should call MyRoutine _every_ time a packet is received.
Yup.
push DS {I have a hunch that this is needed}
Yup.
mov BX,14 {ifType-WD8003}
Use -1 here. That way your program will work on any packet driver,
not just wd8003e's.
-russ <nelson@crynwr.com> What canst *thou* say?
Crynwr Software Crynwr Software sells packet driver support.
11 Grant St. 315-268-1925 Voice | LPF member - ask me about
Potsdam, NY 13676 315-268-9201 FAX | the harm software patents do.
Technical Details
Message-ID:
<722009868snx@crynwr.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!portal!lll-winken!snow.geology.wisc.edu!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!darwin.sura.net!udel!intercon!psinntp!crynwr!nelsonReferences:
<1e7eshINNhvt@flop.ENGR.ORST.EDU>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!portal!lll-winken!snow.geology.wisc.edu!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!darwin.sura.net!udel!intercon!psinntp!crynwr!nelson From: nelson@crynwr.com (Russell Nelson) Newsgroups: comp.sys.ibm.pc.net,comp.sys.ibm.pc.programmer,alt.msdos.programmer,comp.os.msdos.programmer,comp.protocols.tcp-ip.ibmpc Subject: Packet Driver Programming Problem Message-ID: <722009868snx@crynwr.com> Date: 17 Nov 92 14:17:48 GMT References: <1e7eshINNhvt@flop.ENGR.ORST.EDU> Organization: Crynwr Software Lines: 31