fddi.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /******************************************************************************
  3. *
  4. * (C)Copyright 1998,1999 SysKonnect,
  5. * a business unit of Schneider & Koch & Co. Datensysteme GmbH.
  6. *
  7. * The information in this file is provided "AS IS" without warranty.
  8. *
  9. ******************************************************************************/
  10. #ifndef _FDDI_
  11. #define _FDDI_
  12. struct fddi_addr {
  13. u_char a[6] ;
  14. } ;
  15. #define GROUP_ADDR 0x80 /* MSB in a[0] */
  16. struct fddi_mac {
  17. struct fddi_addr mac_dest ;
  18. struct fddi_addr mac_source ;
  19. u_char mac_info[4478] ;
  20. } ;
  21. #define FDDI_MAC_SIZE (12)
  22. #define FDDI_RAW_MTU (4500-5) /* exl. Pr,SD, ED/FS */
  23. #define FDDI_RAW (4500)
  24. /*
  25. * FC values
  26. */
  27. #define FC_VOID 0x40 /* void frame */
  28. #define FC_TOKEN 0x80 /* token */
  29. #define FC_RES_TOKEN 0xc0 /* restricted token */
  30. #define FC_SMT_INFO 0x41 /* SMT Info frame */
  31. /*
  32. * FC_SMT_LAN_LOC && FC_SMT_LOC are SK specific !
  33. */
  34. #define FC_SMT_LAN_LOC 0x42 /* local SMT Info frame */
  35. #define FC_SMT_LOC 0x43 /* local SMT Info frame */
  36. #define FC_SMT_NSA 0x4f /* SMT NSA frame */
  37. #define FC_MAC 0xc0 /* MAC frame */
  38. #define FC_BEACON 0xc2 /* MAC beacon frame */
  39. #define FC_CLAIM 0xc3 /* MAC claim frame */
  40. #define FC_SYNC_LLC 0xd0 /* sync. LLC frame */
  41. #define FC_ASYNC_LLC 0x50 /* async. LLC frame */
  42. #define FC_SYNC_BIT 0x80 /* sync. bit in FC */
  43. #define FC_LLC_PRIOR 0x07 /* priority bits */
  44. #define BEACON_INFO 0 /* beacon type */
  45. #define DBEACON_INFO 1 /* beacon type DIRECTED */
  46. /*
  47. * indicator bits
  48. */
  49. #define C_INDICATOR (1<<0)
  50. #define A_INDICATOR (1<<1)
  51. #define E_INDICATOR (1<<2)
  52. #define I_INDICATOR (1<<6) /* SK specific */
  53. #define L_INDICATOR (1<<7) /* SK specific */
  54. #endif /* _FDDI_ */