netrom.h
上传用户:lgb322
上传日期:2013-02-24
资源大小:30529k
文件大小:1k
源码类别:

嵌入式Linux

开发平台:

Unix_Linux

  1. /*
  2.  * These are the public elements of the Linux kernel NET/ROM implementation.
  3.  * For kernel AX.25 see the file ax25.h. This file requires ax25.h for the
  4.  * definition of the ax25_address structure.
  5.  */
  6. #ifndef NETROM_KERNEL_H
  7. #define NETROM_KERNEL_H
  8. #define NETROM_MTU 236
  9. #define NETROM_T1 1
  10. #define NETROM_T2 2
  11. #define NETROM_N2 3
  12. #define NETROM_T4 6
  13. #define NETROM_IDLE 7
  14. #define SIOCNRDECOBS (SIOCPROTOPRIVATE+2)
  15. struct nr_route_struct {
  16. #define NETROM_NEIGH 0
  17. #define NETROM_NODE 1
  18. int type;
  19. ax25_address callsign;
  20. char device[16];
  21. unsigned int quality;
  22. char mnemonic[7];
  23. ax25_address neighbour;
  24. unsigned int obs_count;
  25. unsigned int ndigis;
  26. ax25_address digipeaters[AX25_MAX_DIGIS];
  27. };
  28. #endif