version 1.1.1.2, 2016/11/01 09:56:12
|
version 1.1.1.3, 2021/03/17 00:39:23
|
Line 90
|
Line 90
|
}; |
}; |
|
|
struct linkbm { |
struct linkbm { |
|
#ifndef NG_PPP_STATS64 |
struct ng_ppp_link_stat |
struct ng_ppp_link_stat |
idleStats; /* Link management stats */ |
idleStats; /* Link management stats */ |
|
#else |
|
struct ng_ppp_link_stat64 |
|
idleStats; /* Link management stats */ |
|
#endif |
}; |
}; |
typedef struct linkbm *LinkBm; |
typedef struct linkbm *LinkBm; |
|
|
Line 136
|
Line 141
|
#endif |
#endif |
|
|
/* Link properties */ |
/* Link properties */ |
short num_redial; /* Counter for retry attempts */ | unsigned short num_redial; /* Counter for retry attempts */ |
u_char upReasonValid; |
u_char upReasonValid; |
u_char downReasonValid; |
u_char downReasonValid; |
u_char tee_removed; |
u_char tee_removed; |
Line 148
|
Line 153
|
char msession_id[AUTH_MAX_SESSIONID]; /* a uniq msession-id */ |
char msession_id[AUTH_MAX_SESSIONID]; /* a uniq msession-id */ |
char session_id[AUTH_MAX_SESSIONID]; /* a uniq session-id */ |
char session_id[AUTH_MAX_SESSIONID]; /* a uniq session-id */ |
|
|
PhysType type; /* Device type descriptor */ | const struct phystype *type; /* Device type descriptor */ |
void *info; /* Type specific info */ |
void *info; /* Type specific info */ |
MsgHandler pmsgs; /* Message channel */ |
MsgHandler pmsgs; /* Message channel */ |
struct pppTimer openTimer; /* Open retry timer */ |
struct pppTimer openTimer; /* Open retry timer */ |
Line 177
|
Line 182
|
extern int LinkOpenCmd(Context ctx); |
extern int LinkOpenCmd(Context ctx); |
extern int LinkCloseCmd(Context ctx); |
extern int LinkCloseCmd(Context ctx); |
|
|
extern int LinkCreate(Context ctx, int ac, char *av[], void *arg); | extern int LinkCreate(Context ctx, int ac, const char *const av[], const void *arg); |
extern int LinkDestroy(Context ctx, int ac, char *av[], void *arg); | extern int LinkDestroy(Context ctx, int ac, const char *const av[], const void *arg); |
extern Link LinkInst(Link lt, char *name, int tmpl, int stay); | extern Link LinkInst(Link lt, const char *name, int tmpl, int stay); |
extern void LinkShutdownCheck(Link l, short state); |
extern void LinkShutdownCheck(Link l, short state); |
extern void LinkShutdown(Link l); |
extern void LinkShutdown(Link l); |
extern int LinkNgInit(Link l); |
extern int LinkNgInit(Link l); |
Line 188
|
Line 193
|
extern int LinkNgLeave(Link l); |
extern int LinkNgLeave(Link l); |
extern void LinkNgShutdown(Link l); |
extern void LinkNgShutdown(Link l); |
extern int LinkNuke(Link link); |
extern int LinkNuke(Link link); |
extern int LinkStat(Context ctx, int ac, char *av[], void *arg); | extern int LinkStat(Context ctx, int ac, const char *const av[], const void *arg); |
extern void LinkUpdateStats(Link l); |
extern void LinkUpdateStats(Link l); |
extern void LinkResetStats(Link l); |
extern void LinkResetStats(Link l); |
extern Link LinkFind(const char *name); |
extern Link LinkFind(const char *name); |
extern int LinkCommand(Context ctx, int ac, char *av[], void *arg); | extern int LinkCommand(Context ctx, int ac, const char *const av[], const void *arg); |
extern int SessionCommand(Context ctx, int ac, char *av[], void *arg); | extern int SessionCommand(Context ctx, int ac, const char *const av[], const void *arg); |
extern int AuthnameCommand(Context ctx, int ac, char *av[], void *arg); | extern int AuthnameCommand(Context ctx, int ac, const char *const av[], const void *arg); |
extern void RecordLinkUpDownReason(Bund b, Link l, int up, const char *fmt, |
extern void RecordLinkUpDownReason(Bund b, Link l, int up, const char *fmt, |
const char *arg, ...); |
const char *arg, ...); |
|
|