netrom.h 744 B

123456789101112131415161718192021222324252627282930313233343536
  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. #include <linux/ax25.h>
  9. #define NETROM_MTU 236
  10. #define NETROM_T1 1
  11. #define NETROM_T2 2
  12. #define NETROM_N2 3
  13. #define NETROM_T4 6
  14. #define NETROM_IDLE 7
  15. #define SIOCNRDECOBS (SIOCPROTOPRIVATE+2)
  16. struct nr_route_struct {
  17. #define NETROM_NEIGH 0
  18. #define NETROM_NODE 1
  19. int type;
  20. ax25_address callsign;
  21. char device[16];
  22. unsigned int quality;
  23. char mnemonic[7];
  24. ax25_address neighbour;
  25. unsigned int obs_count;
  26. unsigned int ndigis;
  27. ax25_address digipeaters[AX25_MAX_DIGIS];
  28. };
  29. #endif