]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/setup/setup.h
Merge branch 'kernel-test' into seventeen
[people/pmueller/ipfire-2.x.git] / src / setup / setup.h
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
13 #include <newt.h>
14 #include <libsmooth.h>
15
16 /* hostname.c */
17 int handlehostname(void);
18
19 /* domainname.c */
20 int handledomainname(void);
21
22 /* networking.c */
23 int handlenetworking(void);
24
25 /* dhcp.c */
26 int handledhcp(void);
27
28 /* passwords.c */
29 int handlerootpassword(void);
30 int handlesetuppassword(void);
31 int handleadminpassword(void);
32
33 /* misc.c */
34 int writehostsfiles(void);
35 int handleisdn(void);
36
37 /* keymap.c */
38 int handlekeymap(void);
39
40 /* timezone.c */
41 int 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
58 struct nic
59 {
60 char driver[80];
61 char description[256];
62 char macaddr[20];
63 char nic[20];
64 };
65
66 struct knic
67 {
68 char driver[80];
69 char description[256];
70 char macaddr[20];
71 char colour[20];
72 };
73
74 int changeaddress(struct keyvalue *kv, char *colour, int typeflag,
75 char *defaultdhcphostname);
76 int gettype(char *type);
77 int setnetaddress(struct keyvalue *kv, char *colour);
78 void networkdialogcallbacktype(newtComponent cm, void *data);
79 int interfacecheck(struct keyvalue *kv, char *colour);
80 int rename_nics(void);
81 int init_knics(void);
82 int create_udev(void);
83 int scan_network_cards(void);
84 int nicmenu(int colour);
85 int clear_card_entry(int cards);
86 int ask_clear_card_entry(int cards);
87 int manualdriver(char *driver, char *driveroptions);