1#include <stdio.h>
2
3extern int start_switch(void);
4extern int start_vlan(void);
5extern int stop_vlan(void);
6#ifdef CONFIG_PPTP_CLIENT
7extern int start_pptp();
8extern int stop_pptp();
9#endif
10#ifdef CONFIG_IPSEC_FREESWAN
11extern int start_ipsec();
12extern int stop_ipsec();
13#endif
14
15void extra_restore_defaults()
16{
17}
18
19
20
21void rc1_start()
22{
23	setup_switch();
24	start_vlan();
25}
26void rc1_stop()
27{
28	stop_vlan();
29}
30
31
32void rc7_start()
33{
34#ifdef CONFIG_PPTP_CLIENT
35	start_pptp();
36#endif
37#ifdef CONFIG_IPSEC_FREESWAN
38	start_ipsec();
39#endif
40}
41
42
43void rc7_stop()
44{
45#ifdef CONFIG_IPSEC_FREESWAN
46	stop_ipsec();
47#endif
48#ifdef CONFIG_PPTP_CLIENT
49	stop_pptp();
50#endif
51}
52
53
54
55