| 1 | /* -*-c-*- |
| 2 | * |
| 3 | * $Id: acconfig.h,v 1.1 2001/01/25 22:03:39 mdw Exp $ |
| 4 | * |
| 5 | * Configuration data for Usernet |
| 6 | * |
| 7 | * (c) 1998 Mark Wooding |
| 8 | */ |
| 9 | |
| 10 | /*----- Licensing notice --------------------------------------------------* |
| 11 | * |
| 12 | * This program is free software; you can redistribute it and/or modify |
| 13 | * it under the terms of the GNU General Public License as published by |
| 14 | * the Free Software Foundation; either version 2 of the License, or |
| 15 | * (at your option) any later version. |
| 16 | * |
| 17 | * This program is distributed in the hope that it will be useful, |
| 18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 20 | * GNU General Public License for more details. |
| 21 | * |
| 22 | * You should have received a copy of the GNU General Public License |
| 23 | * along with this program; if not, write to the Free Software Foundation, |
| 24 | * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 25 | */ |
| 26 | |
| 27 | /*----- Revision history --------------------------------------------------* |
| 28 | * |
| 29 | * $Log: acconfig.h,v $ |
| 30 | * Revision 1.1 2001/01/25 22:03:39 mdw |
| 31 | * Initial check-in (somewhat belated). |
| 32 | * |
| 33 | */ |
| 34 | |
| 35 | #ifndef UNETCONF_H |
| 36 | #define UNETCONF_H |
| 37 | |
| 38 | #ifdef __cplusplus |
| 39 | extern "C" { |
| 40 | #endif |
| 41 | |
| 42 | /*----- Configuration data ------------------------------------------------*/ |
| 43 | @TOP@ |
| 44 | |
| 45 | /* --- Package name and version number --- */ |
| 46 | |
| 47 | #define PACKAGE "usernet" |
| 48 | /* PACKAGE -- package name string */ |
| 49 | |
| 50 | #define VERSION "0.0" |
| 51 | /* VERSION -- package version number */ |
| 52 | |
| 53 | /* --- Device numbers --- */ |
| 54 | |
| 55 | #define UNET_MAJOR 120 |
| 56 | /* UNET_MAJOR -- major device for /dev/unet and friends */ |
| 57 | |
| 58 | #define UNET_NPERSIST 1 |
| 59 | /* UNET_NPERSIST -- number of persistent devices and interfaces */ |
| 60 | |
| 61 | #define UNET_TRANSMINOR 256 |
| 62 | /* UNET_TRANSMINOR -- minor device number for create-a-transient device */ |
| 63 | |
| 64 | /* --- Other tweaking things --- */ |
| 65 | |
| 66 | #define UNET_QMAXLEN 64 |
| 67 | /* UNET_QMAXLEN -- maximum number of packets waiting for collection */ |
| 68 | |
| 69 | #define UNET_MAXIF 32 |
| 70 | /* UNET_MAX -- maximum number of unets to allow */ |
| 71 | |
| 72 | #undef UNET_DEBUG |
| 73 | /* UNET_DEBUG -- 1 for debugging on permanently, -1 for no debugging, |
| 74 | * or 0 for debugging switchable at runtime */ |
| 75 | |
| 76 | @BOTTOM@ |
| 77 | |
| 78 | /*----- That's all, folks -------------------------------------------------*/ |
| 79 | |
| 80 | #ifdef __cplusplus |
| 81 | } |
| 82 | #endif |
| 83 | |
| 84 | #endif |