revert between 56095 -> 55830 in arch
[AROS.git] / workbench / network / stacks / AROSTCP / bsdsocket / net / sana2config.h
blob96caec7e25798bb51067e0f4c2ed20c54cd0445a
1 /*
2 * Copyright (C) 1994 AmiTCP/IP Group, <amitcp-group@hut.fi>
3 * Helsinki University of Technology, Finland.
4 * All rights reserved.
5 * Copyright (C) 2005 - 2007 The AROS Dev Team
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston,
19 * MA 02111-1307, USA.
23 #ifndef NET_SANA2CONFIG_H
24 #define NET_SANA2CONFIG_H
26 #ifndef DOS_RDARGS_H
27 #include <dos/rdargs.h>
28 #endif
30 #include "net/netdbpaths.h"
32 #define SSC_TEMPLATE \
33 "NAME/A," \
34 "DEV=DEVICE/A/K," \
35 "UNIT/N/K," \
36 "IP/K,NETMASK/K,UP/S," \
37 "IPTYPE/N/K," \
38 "ARPTYPE=IPARPTYPE/N/K," \
39 "IPREQ=IPREQUESTS/N/K," \
40 "ARPREQ=ARPREQUESTS/N/K," \
41 "WRITEREQ=WRITEREQUESTS/N/K," \
42 "NOTRACKING/S," \
43 "NOARP/S," \
44 "ARPHDR/N/K," \
45 "P2P=POINT2POINT/S,NOSIMPLEX/S,LOOPBACK/S"
47 struct ssc_args {
48 UBYTE *a_name;
49 UBYTE *a_dev;
50 LONG *a_unit;
51 UBYTE *a_ip;
52 UBYTE *a_netmask;
53 LONG a_up;
54 LONG *a_iptype;
55 LONG *a_arptype;
56 LONG *a_ipno;
57 LONG *a_arpno;
58 LONG *a_writeno;
59 LONG a_notrack;
60 LONG a_noarp;
61 LONG *a_arphdr;
62 LONG a_point2point;
63 LONG a_nosimplex;
64 LONG a_loopback;
67 struct ssconfig {
68 LONG flags;
69 LONG unit;
70 char name[IFNAMSIZ];
71 struct RDArgs *rdargs;
72 struct ssc_args args[1];
75 #define SSCF_RDARGS 1 /* set iff rdargs should be freed */
78 * Define how the interface database should be interpreted
80 #define SSC_ALIAS 0
81 #define SSC_COMPAT 1
83 void ssconfig_free(struct ssconfig *config);
84 struct ssconfig *ssconfig_parse(struct RDArgs *rdargs);
85 struct ssconfig *ssconfig_make(int how, char *name, long unit);
86 void ssconfig(struct sana_softc *ifp, struct ssconfig *sscp);
88 #endif /* !NET_SANA2CONFIG_H */