1*6f52b16cSGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2607ca46eSDavid Howells /* 3607ca46eSDavid Howells * These are the public elements of the Linux kernel NET/ROM implementation. 4607ca46eSDavid Howells * For kernel AX.25 see the file ax25.h. This file requires ax25.h for the 5607ca46eSDavid Howells * definition of the ax25_address structure. 6607ca46eSDavid Howells */ 7607ca46eSDavid Howells 8607ca46eSDavid Howells #ifndef NETROM_KERNEL_H 9607ca46eSDavid Howells #define NETROM_KERNEL_H 10607ca46eSDavid Howells 11607ca46eSDavid Howells #include <linux/ax25.h> 12607ca46eSDavid Howells 13607ca46eSDavid Howells #define NETROM_MTU 236 14607ca46eSDavid Howells 15607ca46eSDavid Howells #define NETROM_T1 1 16607ca46eSDavid Howells #define NETROM_T2 2 17607ca46eSDavid Howells #define NETROM_N2 3 18607ca46eSDavid Howells #define NETROM_T4 6 19607ca46eSDavid Howells #define NETROM_IDLE 7 20607ca46eSDavid Howells 21607ca46eSDavid Howells #define SIOCNRDECOBS (SIOCPROTOPRIVATE+2) 22607ca46eSDavid Howells 23607ca46eSDavid Howells struct nr_route_struct { 24607ca46eSDavid Howells #define NETROM_NEIGH 0 25607ca46eSDavid Howells #define NETROM_NODE 1 26607ca46eSDavid Howells int type; 27607ca46eSDavid Howells ax25_address callsign; 28607ca46eSDavid Howells char device[16]; 29607ca46eSDavid Howells unsigned int quality; 30607ca46eSDavid Howells char mnemonic[7]; 31607ca46eSDavid Howells ax25_address neighbour; 32607ca46eSDavid Howells unsigned int obs_count; 33607ca46eSDavid Howells unsigned int ndigis; 34607ca46eSDavid Howells ax25_address digipeaters[AX25_MAX_DIGIS]; 35607ca46eSDavid Howells }; 36607ca46eSDavid Howells 37607ca46eSDavid Howells #endif 38