Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
0002 /*
0003  * These are the public elements of the Linux kernel NET/ROM implementation.
0004  * For kernel AX.25 see the file ax25.h. This file requires ax25.h for the
0005  * definition of the ax25_address structure.
0006  */
0007 
0008 #ifndef NETROM_KERNEL_H
0009 #define NETROM_KERNEL_H
0010 
0011 #include <linux/ax25.h>
0012 
0013 #define NETROM_MTU  236
0014 
0015 #define NETROM_T1   1
0016 #define NETROM_T2   2
0017 #define NETROM_N2   3
0018 #define NETROM_T4   6
0019 #define NETROM_IDLE 7
0020 
0021 #define SIOCNRDECOBS        (SIOCPROTOPRIVATE+2)
0022 
0023 struct nr_route_struct {
0024 #define NETROM_NEIGH    0
0025 #define NETROM_NODE 1
0026     int     type;
0027     ax25_address    callsign;
0028     char        device[16];
0029     unsigned int    quality;
0030     char        mnemonic[7];
0031     ax25_address    neighbour;
0032     unsigned int    obs_count;
0033     unsigned int    ndigis;
0034     ax25_address    digipeaters[AX25_MAX_DIGIS];
0035 };
0036 
0037 #endif