1 /* Copyright (C) 1997 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, write to the Free
16 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
19 #ifndef _NETROM_NETROM_H
20 #define _NETROM_NETROM_H 1
22 #include <netax25/ax25.h>
24 /* Setsockoptions(2) level. Thanks to BSD these must match IPPROTO_xxx. */
25 #define SOL_NETROM 259
27 /* NetRom control values: */
31 #define NETROM_PACLEN 5
35 #define NETROM_KILL 99
38 #define NETROM_NEIGH 0
41 struct nr_route_struct
44 ax25_address callsign
;
48 ax25_address neighbour
;
49 unsigned int obs_count
;
51 ax25_address digipeaters
[AX25_MAX_DIGIS
];
54 /* NetRom socket ioctls: */
55 #define SIOCNRGETPARMS (SIOCPROTOPRIVATE+0)
56 #define SIOCNRSETPARMS (SIOCPROTOPRIVATE+1)
57 #define SIOCNRDECOBS (SIOCPROTOPRIVATE+2)
58 #define SIOCNRRTCTL (SIOCPROTOPRIVATE+3)
59 #define SIOCNRCTLCON (SIOCPROTOPRIVATE+4)
61 /* NetRom parameter structure: */
62 struct nr_parms_struct
65 unsigned int obs_count
;
68 unsigned int ack_delay
;
69 unsigned int busy_delay
;
75 /* NetRom control structure: */
84 #endif /* netrom/netrom.h */