home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / NCSATELN / TEL23SRC.ZIP / INCLUDE / MACDEFS.H < prev    next >
Encoding:
C/C++ Source or Header  |  1990-05-25  |  1.9 KB  |  84 lines

  1. #ifndef MACDEFS_H
  2.  
  3. /*
  4. *    Raw is the buffer pointer
  5. *
  6. */
  7.  
  8. #ifdef MASTERDEF
  9. char *raw;
  10. #else
  11. extern char *raw;
  12. #endif
  13. /*
  14. *   defined in assembly language file for interrupt driven Ether buffering
  15. *
  16. */
  17. /*MAC: this is in my structure */
  18. struct BUFREC {
  19.     char *bufpt, 
  20.     *bufread,
  21.     *buforg,
  22.     *bufend;
  23.     short bufbig,
  24.     buflim;
  25. };
  26.  
  27. #ifdef MASTERDEF
  28. struct BUFREC bufinfo;
  29. #else
  30. extern struct BUFREC bufinfo;
  31. #endif
  32. /*
  33. *  hardware address for Ethernet broadcast address (used for ARP)
  34. */
  35. #ifdef MASTERDEF
  36. unsigned char bseed[]={0xff,0xff,0xff,0xff,0xff,0xff};
  37. #else
  38. extern unsigned char bseed[];
  39. #endif
  40. /*
  41. *  timeout for response to ARP packet for Ethernet
  42. */
  43. #define DLAYTIMEOUT 15*60
  44. /*
  45. *  timeout for opening of a TCP connection
  46. *    1. number of times to send a copy of the first packet
  47. *    2. number of seconds to wait between each send of packet
  48. */
  49. /*
  50. *  how often to poke a TCP connection to keep it alive and make
  51. *  sure other side hasn't crashed.
  52. */
  53. /*#define RETRANSINTERVAL 3         this is the only retrans cause , keep it small */
  54. /*#define POKEINTERVAL 200         this really doesn't matter because everyone else*/
  55.                                 /* is doing funny things with the spec! */
  56.                                 /* I vote we reset the suckers! */
  57. #define POKEINTERVAL 200*60
  58. #define MAXRTO       600
  59. #define MINRTO          15
  60. #define    CACHETO         21000            /* Wow long to cache the ARPS */
  61. #define    ARPTO         90                /* How long to wait  for arps */
  62. #define WAITTIME      35
  63. #define LASTTIME      12000
  64. #define CACHELEN      10
  65. /* #ifdef ETHER                    CHANGE - how to handle this ? */
  66. #define MAXSEG 0x0400
  67. /*                                #else
  68.                                 #define MAXSEG 0x0200
  69.                                 #endif
  70. */
  71. #define CREDIT 4096
  72. #ifdef MPW
  73. pascal long TickCount()
  74.     extern 0xA975;
  75. #define time(a)    TickCount()
  76. #else
  77. pascal long    TickCt()=0xa975;
  78. #define time(a)    TickCt()
  79. #endif 
  80. extern int KIP;                    /* are we kipping ??? */
  81.  
  82. #define MACDEFS_H
  83. #endif
  84.