1 /* Copyright (C) 1997-2021 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see
16 <https://www.gnu.org/licenses/>. */
18 #ifndef _NETROM_NETROM_H
19 #define _NETROM_NETROM_H 1
21 #include <netax25/ax25.h>
23 /* Setsockoptions(2) level. Thanks to BSD these must match IPPROTO_xxx. */
24 #define SOL_NETROM 259
26 /* NetRom control values: */
30 #define NETROM_PACLEN 5
34 #define NETROM_KILL 99
37 #define NETROM_NEIGH 0
40 struct nr_route_struct
43 ax25_address callsign
;
47 ax25_address neighbour
;
48 unsigned int obs_count
;
50 ax25_address digipeaters
[AX25_MAX_DIGIS
];
53 /* NetRom socket ioctls: */
54 #define SIOCNRGETPARMS (SIOCPROTOPRIVATE+0)
55 #define SIOCNRSETPARMS (SIOCPROTOPRIVATE+1)
56 #define SIOCNRDECOBS (SIOCPROTOPRIVATE+2)
57 #define SIOCNRRTCTL (SIOCPROTOPRIVATE+3)
58 #define SIOCNRCTLCON (SIOCPROTOPRIVATE+4)
60 /* NetRom parameter structure: */
61 struct nr_parms_struct
64 unsigned int obs_count
;
67 unsigned int ack_delay
;
68 unsigned int busy_delay
;
74 /* NetRom control structure: */
83 #endif /* netrom/netrom.h */