fddi.h 1.9 KB

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