netrom.h 807 B

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