|
Packit Service |
82fcde |
/* Copyright (C) 1997-2018 Free Software Foundation, Inc.
|
|
Packit Service |
82fcde |
This file is part of the GNU C Library.
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
The GNU C Library is free software; you can redistribute it and/or
|
|
Packit Service |
82fcde |
modify it under the terms of the GNU Lesser General Public
|
|
Packit Service |
82fcde |
License as published by the Free Software Foundation; either
|
|
Packit Service |
82fcde |
version 2.1 of the License, or (at your option) any later version.
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
The GNU C Library is distributed in the hope that it will be useful,
|
|
Packit Service |
82fcde |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
82fcde |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
82fcde |
Lesser General Public License for more details.
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
You should have received a copy of the GNU Lesser General Public
|
|
Packit Service |
82fcde |
License along with the GNU C Library; if not, see
|
|
Packit Service |
82fcde |
<http://www.gnu.org/licenses/>. */
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
#ifndef _NETROM_NETROM_H
|
|
Packit Service |
82fcde |
#define _NETROM_NETROM_H 1
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
#include <netax25/ax25.h>
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
/* Setsockoptions(2) level. Thanks to BSD these must match IPPROTO_xxx. */
|
|
Packit Service |
82fcde |
#define SOL_NETROM 259
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
/* NetRom control values: */
|
|
Packit Service |
82fcde |
#define NETROM_T1 1
|
|
Packit Service |
82fcde |
#define NETROM_T2 2
|
|
Packit Service |
82fcde |
#define NETROM_N2 3
|
|
Packit Service |
82fcde |
#define NETROM_PACLEN 5
|
|
Packit Service |
82fcde |
#define NETROM_T4 6
|
|
Packit Service |
82fcde |
#define NETROM_IDLE 7
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
#define NETROM_KILL 99
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
/* Type of route: */
|
|
Packit Service |
82fcde |
#define NETROM_NEIGH 0
|
|
Packit Service |
82fcde |
#define NETROM_NODE 1
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
struct nr_route_struct
|
|
Packit Service |
82fcde |
{
|
|
Packit Service |
82fcde |
int type;
|
|
Packit Service |
82fcde |
ax25_address callsign;
|
|
Packit Service |
82fcde |
char device[16];
|
|
Packit Service |
82fcde |
unsigned int quality;
|
|
Packit Service |
82fcde |
char mnemonic[7];
|
|
Packit Service |
82fcde |
ax25_address neighbour;
|
|
Packit Service |
82fcde |
unsigned int obs_count;
|
|
Packit Service |
82fcde |
unsigned int ndigis;
|
|
Packit Service |
82fcde |
ax25_address digipeaters[AX25_MAX_DIGIS];
|
|
Packit Service |
82fcde |
};
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
/* NetRom socket ioctls: */
|
|
Packit Service |
82fcde |
#define SIOCNRGETPARMS (SIOCPROTOPRIVATE+0)
|
|
Packit Service |
82fcde |
#define SIOCNRSETPARMS (SIOCPROTOPRIVATE+1)
|
|
Packit Service |
82fcde |
#define SIOCNRDECOBS (SIOCPROTOPRIVATE+2)
|
|
Packit Service |
82fcde |
#define SIOCNRRTCTL (SIOCPROTOPRIVATE+3)
|
|
Packit Service |
82fcde |
#define SIOCNRCTLCON (SIOCPROTOPRIVATE+4)
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
/* NetRom parameter structure: */
|
|
Packit Service |
82fcde |
struct nr_parms_struct
|
|
Packit Service |
82fcde |
{
|
|
Packit Service |
82fcde |
unsigned int quality;
|
|
Packit Service |
82fcde |
unsigned int obs_count;
|
|
Packit Service |
82fcde |
unsigned int ttl;
|
|
Packit Service |
82fcde |
unsigned int timeout;
|
|
Packit Service |
82fcde |
unsigned int ack_delay;
|
|
Packit Service |
82fcde |
unsigned int busy_delay;
|
|
Packit Service |
82fcde |
unsigned int tries;
|
|
Packit Service |
82fcde |
unsigned int window;
|
|
Packit Service |
82fcde |
unsigned int paclen;
|
|
Packit Service |
82fcde |
};
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
/* NetRom control structure: */
|
|
Packit Service |
82fcde |
struct nr_ctl_struct
|
|
Packit Service |
82fcde |
{
|
|
Packit Service |
82fcde |
unsigned char index;
|
|
Packit Service |
82fcde |
unsigned char id;
|
|
Packit Service |
82fcde |
unsigned int cmd;
|
|
Packit Service |
82fcde |
unsigned long arg;
|
|
Packit Service |
82fcde |
};
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
#endif /* netrom/netrom.h */
|