home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD2.bin / bbs / comm / amitcp-3.0ß2.lha / AmiTCP / src / amitcp / net / sana2config.h < prev    next >
C/C++ Source or Header  |  1994-02-03  |  2KB  |  70 lines

  1. #ifndef NET_SANA2CONFIG_H
  2. #define NET_SANA2CONFIG_H \
  3. "$Id: sana2config.h,v 3.2 1994/02/03 19:10:57 ppessi Exp $"
  4. /* 
  5.  * Copyright © 1994 AmiTCP/IP Group, <amitcp-group@hut.fi>
  6.  *                  Helsinki University of Technology, Finland.
  7.  *                  All rights reserved.
  8.  *
  9.  * sana2config.h --- Configuration parameters for SANA-II network interfaces
  10.  */
  11.  
  12. #ifndef DOS_RDARGS_H
  13. #include <dos/rdargs.h>
  14. #endif
  15.  
  16. #define _PATH_SANA2CONFIG "AmiTCP:db/interfaces"
  17.  
  18. #define SSC_TEMPLATE \
  19.   "NAME/A," \
  20.   "DEV=DEVICE/A/K," \
  21.   "UNIT/N/K," \
  22.   "IPTYPE/N/K," \
  23.   "ARPTYPE=IPARPTYPE/N/K," \
  24.   "IPREQ=IPREQUESTS/N/K," \
  25.   "ARPREQ=ARPREQUESTS/N/K," \
  26.   "WRITEREQ=WRITEREQUESTS/N/K," \
  27.   "NOTRACKING/S," \
  28.   "NOARP/S," \
  29.   "ARPHDR/N/K," \
  30.   "P2P=POINT2POINT/S,NOSIMPLEX/S,LOOPBACK/S"
  31.  
  32. struct ssc_args {
  33.   UBYTE *a_name;
  34.   UBYTE *a_dev;
  35.   LONG  *a_unit;
  36.   LONG  *a_iptype;
  37.   LONG  *a_arptype;
  38.   LONG  *a_ipno;
  39.   LONG  *a_arpno;
  40.   LONG  *a_writeno;
  41.   LONG   a_notrack;
  42.   LONG   a_noarp;
  43.   LONG  *a_arphdr;
  44.   LONG   a_point2point;
  45.   LONG   a_nosimplex;
  46.   LONG   a_loopback;
  47. };
  48.  
  49. struct ssconfig {
  50.   LONG            flags;
  51.   LONG            unit;
  52.   char            name[IFNAMSIZ];
  53.   struct RDArgs   rdargs[1];
  54.   struct ssc_args args[1];
  55. };
  56.  
  57. #define SSCF_RDARGS 1        /* set iff rdargs should be freed */
  58.  
  59. /*
  60.  * Define how the interface database should be interpreted
  61.  */
  62. #define SSC_ALIAS  0
  63. #define SSC_COMPAT 1
  64.  
  65. void ssconfig_free(struct ssconfig *config);
  66. struct ssconfig *ssconfig_make(int how, char *name, long unit);
  67. void ssconfig(struct sana_softc *ifp, struct ssconfig *sscp);
  68.  
  69. #endif /* !NET_SANA2CONFIG_H */
  70.