]> git.ipfire.org Git - ipfire-2.x.git/blame - src/setup/setup.h
correct wrong headline at hardwaregraphs.cgi
[ipfire-2.x.git] / src / setup / setup.h
CommitLineData
7064bbd9
MT
1/* SmoothWall setup program.
2 *
3 * This program is distributed under the terms of the GNU General Public
4 * Licence. See the file COPYING for details.
5 *
6 * (c) Lawrence Manning, 2001
7 * Main include file.
8 *
9 * $Id: setup.h,v 1.4 2003/12/11 11:25:54 riddles Exp $
10 *
11 */
12
e1457ba0
MT
13#include <newt.h>
14#include <libsmooth.h>
7064bbd9
MT
15
16/* hostname.c */
17int handlehostname(void);
18
19/* domainname.c */
20int handledomainname(void);
21
22/* networking.c */
23int handlenetworking(void);
24
25/* dhcp.c */
26int handledhcp(void);
27
28/* passwords.c */
29int handlerootpassword(void);
30int handlesetuppassword(void);
31int handleadminpassword(void);
32
33/* misc.c */
34int writehostsfiles(void);
35int handleisdn(void);
36
37/* keymap.c */
38int handlekeymap(void);
39
40/* timezone.c */
41int handletimezone(void);
42
43/* netstuff.c */
44#define ADDRESS 0
45#define NETADDRESS 1
46#define NETMASK 2
47#define DHCP 3
48#define NETCHANGE_TOTAL 4
49
50#define SCANNED_NICS "/var/ipfire/ethernet/scanned_nics"
51#define SYSDIR "/sys/class/net"
52
53#define _GREEN_CARD_ 0
54#define _RED_CARD_ 1
55#define _ORANGE_CARD_ 2
56#define _BLUE_CARD_ 3
57
46ce813e
MT
58#define MAX_NICS 20
59
7064bbd9
MT
60struct nic
61{
62 char driver[80];
63 char description[256];
64 char macaddr[20];
65 char nic[20];
66};
67
68struct knic
69{
70 char driver[80];
71 char description[256];
72 char macaddr[20];
73 char colour[20];
74};
75
76int changeaddress(struct keyvalue *kv, char *colour, int typeflag,
77 char *defaultdhcphostname);
78int gettype(char *type);
79int setnetaddress(struct keyvalue *kv, char *colour);
80void networkdialogcallbacktype(newtComponent cm, void *data);
81int interfacecheck(struct keyvalue *kv, char *colour);
82int rename_nics(void);
83int init_knics(void);
7064bbd9
MT
84int scan_network_cards(void);
85int nicmenu(int colour);
86int clear_card_entry(int cards);
87int ask_clear_card_entry(int cards);
88int manualdriver(char *driver, char *driveroptions);