version 1.1.1.1, 2013/07/22 08:44:29
|
version 1.1.1.3, 2021/03/17 00:39:23
|
Line 71
|
Line 71
|
LINK_CONF_SHORTSEQ, /* multi-link short sequence numbers */ |
LINK_CONF_SHORTSEQ, /* multi-link short sequence numbers */ |
LINK_CONF_TIMEREMAIN, /* Send LCP Time-Remain if known */ |
LINK_CONF_TIMEREMAIN, /* Send LCP Time-Remain if known */ |
LINK_CONF_PEER_AS_CALLING, |
LINK_CONF_PEER_AS_CALLING, |
LINK_CONF_REPORT_MAC | LINK_CONF_REPORT_MAC, |
| LINK_CONF_REMOVE_TEE /* Remove ng_tee from the resulting chain */ |
}; |
}; |
|
|
/* Configuration for a link */ |
/* Configuration for a link */ |
Line 89
|
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 135
|
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; |
char *upReason; /* Reason for link going up */ |
char *upReason; /* Reason for link going up */ |
char *downReason; /* Reason for link going down */ |
char *downReason; /* Reason for link going down */ |
int bandwidth; /* Bandwidth in bits per second */ |
int bandwidth; /* Bandwidth in bits per second */ |
Line 146
|
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 175
|
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 186
|
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, ...); |
|
|