atmsap.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* atmsap.h - ATM Service Access Point addressing definitions */
  2. /* Written 1996-1998 by Werner Almesberger, EPFL LRC/ICA */
  3. #ifndef _ATMSAP_H
  4. #define _ATMSAP_H
  5. #include <stdint.h>
  6. #include <linux/atmsap.h>
  7. /*
  8. * Selected ISO/IEC TR 9577 Network Layer Protocol Identifiers (NLPID)
  9. */
  10. #define NLPID_IEEE802_1_SNAP 0x80 /* IEEE 802.1 SNAP */
  11. /*
  12. * Selected Organizationally Unique Identifiers (OUIs)
  13. */
  14. #define ATM_FORUM_OUI "\x00\xA0\x3E" /* ATM Forum */
  15. #define EPFL_OUI "\x00\x60\xD7" /* EPF Lausanne, CH */
  16. /*
  17. * Selected vendor-specific application identifiers (for B-HLI). Such an
  18. * identifier consists of three bytes containing the OUI, followed by four
  19. * bytes assigned by the organization owning the OUI.
  20. */
  21. #define ANS_HLT_VS_ID ATM_FORUM_OUI "\x00\x00\x00\x01"
  22. /* ATM Name System, af-saa-0069.000 */
  23. #define VOD_HLT_VS_ID ATM_FORUM_OUI "\x00\x00\x00\x02"
  24. /* VoD, af-saa-0049.001 */
  25. #define AREQUIPA_HLT_VS_ID EPFL_OUI "\x01\x00\x00\x01" /* Arequipa */
  26. #define TTCP_HLT_VS_ID EPFL_OUI "\x01\x00\x00\x03" /* ttcp_atm */
  27. /* Mapping of "well-known" TCP, UDP, etc. port numbers to ATM BHLIs.
  28. btd-saa-api-bhli-01.02 */
  29. void atm_tcpip_port_mapping(char *vs_id,uint8_t protocol,uint16_t port);
  30. #endif