version 1.1.1.2, 2016/11/01 09:56:12
|
version 1.1.1.3.2.1, 2023/09/27 11:08:01
|
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 110
|
Line 115
|
int id; /* Index of this link in gLinks */ |
int id; /* Index of this link in gLinks */ |
u_char tmpl; /* This is template, not an instance */ |
u_char tmpl; /* This is template, not an instance */ |
u_char stay; /* Must not disappear */ |
u_char stay; /* Must not disappear */ |
u_char state; /* Device current state */ | u_char state; /* Physical device current state */ |
| u_char admin_state; /* Link administrative state */ |
u_char joined_bund; /* Link successfully joined bundle */ |
u_char joined_bund; /* Link successfully joined bundle */ |
u_char originate; /* Who originated the connection */ |
u_char originate; /* Who originated the connection */ |
u_char die; /* LCP agreed to die */ |
u_char die; /* LCP agreed to die */ |
Line 136
|
Line 142
|
#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 154
|
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 174
|
Line 180
|
extern void LinkDown(Link l); |
extern void LinkDown(Link l); |
extern void LinkOpen(Link l); |
extern void LinkOpen(Link l); |
extern void LinkClose(Link l); |
extern void LinkClose(Link l); |
|
extern void LinkOpenAdm(Link l); |
|
extern void LinkCloseAdm(Link l); |
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 196
|
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, ...); |
|
|