home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / ibm / pc / programm / 590 < prev    next >
Encoding:
Internet Message Format  |  1992-11-21  |  2.1 KB

  1. Xref: sparky comp.sys.ibm.pc.programmer:590 alt.msdos.programmer:2758 comp.os.msdos.programmer:10708 comp.protocols.tcp-ip.ibmpc:6367
  2. Path: 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
  3. From: nelson@crynwr.com (Russell Nelson)
  4. Newsgroups: comp.sys.ibm.pc.net,comp.sys.ibm.pc.programmer,alt.msdos.programmer,comp.os.msdos.programmer,comp.protocols.tcp-ip.ibmpc
  5. Subject: Packet Driver Programming Problem
  6. Message-ID: <722009868snx@crynwr.com>
  7. Date: 17 Nov 92 14:17:48 GMT
  8. References: <1e7eshINNhvt@flop.ENGR.ORST.EDU>
  9. Organization: Crynwr Software
  10. Lines: 31
  11.  
  12. In article <1e7eshINNhvt@flop.ENGR.ORST.EDU> densond@xanth.CS.ORST.EDU writes:
  13.  
  14.    I am trying to learn how to program using a packet driver, and am
  15.    having a very difficult time trying to set up a handler using the
  16.    "access_type" call to packet driver.  I have some code below,
  17.    which has been reworked numerous times,   always with the same
  18.    results.  I get a valid handler back with no errors, but when I
  19.    ping my pc from a unix box, the far assembly procedure MyRoutine
  20.    does not get called.  (I am using Turbo Pascal 6.0, BTW.  I know C
  21.    would be better, but I do not have a decent C compiler at home
  22.    [yet]).
  23.  
  24. Well, first of all, do you have your packet driver installed
  25. correctly?  If not, you'll never get anything.  Try running pktall
  26. and see if it prints anything.
  27.  
  28.    A few notes:
  29.            I have tried TypeLen (CX) set to 0, which, according the packet driver
  30.            specs, should call MyRoutine _every_ time a packet is received. 
  31.  
  32. Yup.
  33.  
  34.                    push    DS              {I have a hunch that this is needed}
  35.  
  36. Yup.
  37.  
  38.                    mov     BX,14           {ifType-WD8003}
  39.  
  40. Use -1 here.  That way your program will work on any packet driver,
  41. not just wd8003e's.
  42.  
  43. -russ <nelson@crynwr.com> What canst *thou* say?
  44. Crynwr Software           Crynwr Software sells packet driver support.
  45. 11 Grant St.              315-268-1925 Voice  |  LPF member - ask me about
  46. Potsdam, NY 13676         315-268-9201 FAX    |  the harm software patents do.
  47.