home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / sffdk10b.zip / h / sfproto.h < prev    next >
C/C++ Source or Header  |  2001-03-05  |  2KB  |  83 lines

  1. /*
  2. ** Module   :SFPROTO.H
  3. ** Abstract :SafeFire Plugin Manager Protocol numbering
  4. **
  5. ** Copyright (C) Link Guard Solutions
  6. ** For conditions of distribution and use, see license in license.txt
  7. **
  8. ** Log: Thu  21/12/2000 Created
  9. **
  10. */
  11.  
  12. #ifndef __SFPROTO_H
  13. #define __SFPROTO_H
  14.  
  15.  
  16. /* Next ranges of protocols are defined */
  17.  
  18. /* PPP Range from 0x0000 to 0xFFFF */
  19. #define PPLOPT_PPPBASE     0
  20.  
  21. /* PPP IP protocol */
  22. #define PPPNUM_IP   (PPLOPT_PPPBASE + 0x0021)
  23.  
  24. /* Ethernet Range from 0x10000 to 0x1FFFF */
  25. #define PPLOPT_ETHERBASE   0x10000
  26.  
  27. /* Ethernet IP protocol */
  28. #define ETHNUM_IP   (PPLOPT_ETHERBASE + 0x0800)
  29.  
  30. /* Special protocols that need single protocol number. 0x20000 to 0x2FFFF */
  31. #define PPLOPT_SPECIAL     0x20000
  32.  
  33. /* Stream protocol to pass not packets, but data stream */
  34. #define PPLOPT_STREAM      (PPLOPT_SPECIAL + 1)
  35.  
  36. /* SafeFire Plugin Manager options start from 0x10000000 */
  37. #define PPLOPT_BASE        0x10000000
  38.  
  39. // IP Options
  40. #define PPLIPOPT_BASE      (PPLOPT_BASE + 0x1000)
  41.  
  42. // Your IP (4 bytes)
  43. #define PPLIPOPT_IP         (1 + PPLIPOPT_BASE)
  44. // Peer's IP (4 bytes)
  45. #define PPLIPOPT_PEERIP     (2 + PPLIPOPT_BASE)
  46. // Netmask (4 bytes)
  47. #define PPLIPOPT_NETMASK    (3 + PPLIPOPT_BASE)
  48. // Primary DNS (4 bytes)
  49. #define PPLIPOPT_PRIDNS     (4 + PPLIPOPT_BASE)
  50. // Secondary DNS (4 bytes)
  51. #define PPLIPOPT_SECDNS     (5 + PPLIPOPT_BASE)
  52.  
  53. //  LCP options
  54. #define PPLLCPOPT_BASE      (PPLOPT_BASE + 0x2000)
  55.  
  56. /*
  57. If peer will send self-described padding packets
  58. Protocols that specified to know SDP must
  59. Remove padding by themselves
  60. Data is dword contains either MPV if padding is on
  61. Or 0 if there will be no padding
  62. */
  63. #define PPLLCPOPT_SDPAD     (1 + PPLLCPOPT_BASE)
  64.  
  65. //Ethernet options
  66. #define PPLETHER_BASE      (PPLOPT_BASE + PPLOPT_ETHERBASE)
  67.  
  68. /*
  69. MAC Transfers single multicast address to be registered by Protocol Driver
  70. Data is Multicast address
  71. */
  72. #define PPLETHER_MCAST     (PPLETHER_BASE + 1)
  73.  
  74. /*
  75. Protocol transfers address to be set to MAC
  76. */
  77. #define PPLETHER_MACADDR   (PPLETHER_BASE + 2)
  78.  
  79.  
  80.  
  81. #endif  /*__SFPROTO_H*/
  82.  
  83.