wmail: fixed possible NULL-pointer dereference in config-parser.
[dockapps.git] / yawmppp / src / isprc.h
blobb08593ae37f2efdd5131d2e33807ae48eccba450
2 #ifndef YAWMPPP_ISPRC_H
3 #define YAWMPPP_ISPRC_H
5 #define KEY_LONGNAME "LongName"
6 #define KEY_SHORTNAME "ShortName"
7 #define KEY_STARTACTION "StartAction"
8 #define KEY_STOPACTION "StopAction"
9 #define KEY_SPEEDACTION "SpeedAction"
10 #define KEY_IFDOWNACTION "IfDownAction"
11 #define KEY_USER "User"
12 #define KEY_PHONE "Phone"
14 #define KEY_PPP_OVER "PPPOptionsOverride"
15 #define KEY_PPP_DEFAULTROUTE "PPPDefaultRoute"
16 #define KEY_PPP_PASSIVE "PPPPassive"
17 #define KEY_PPP_NOAUTH "PPPNoAuth"
18 #define KEY_PPP_NOIPDEFAULT "PPPNoIPDefault"
20 #define KEY_PPP_CHAP "PPPChap"
21 #define KEY_PPP_PAP "PPPPap"
23 #define KEY_NOLOGIN "NoLogin"
25 #define KEY_PPPSTUFF "PPPLine"
26 #define KEY_CHATSTUFF "ChatFile"
28 #define AUTH_REQUIRE 0
29 #define AUTH_REFUSE 1
30 #define AUTH_DONTCARE 2
32 struct ISP_PPP {
33 int override;
34 int defaultroute;
35 int passive;
36 int noauth;
37 int noipdefault;
38 int chap;
39 int pap;
40 int usepeerdns;
43 struct YAWMPPP_ISP_INFO {
44 char LongName[128];
45 char ShortName[16];
46 char StartAction[512];
47 char StopAction[512];
48 char SpeedAction[512];
49 char IfDownAction[512];
50 char PPPLine[512];
51 char ChatFile[512];
52 char User[32];
53 char Phone[32];
55 struct ISP_PPP ppp;
57 int nologin;
60 int
61 GetISPInfo(char *rcname,struct YAWMPPP_ISP_INFO *wii,int max);
63 #endif