version 1.1, 2012/02/21 23:32:47
|
version 1.1.1.2, 2021/03/17 00:39:23
|
Line 43
|
Line 43
|
#define TY_IPADDRS 1 |
#define TY_IPADDRS 1 |
#define TY_COMPPROTO 2 |
#define TY_COMPPROTO 2 |
#define TY_IPADDR 3 |
#define TY_IPADDR 3 |
|
#define TY_MOBILEIP 4 |
#define TY_PRIMARYDNS 129 |
#define TY_PRIMARYDNS 129 |
#define TY_PRIMARYNBNS 130 |
#define TY_PRIMARYNBNS 130 |
#define TY_SECONDARYDNS 131 |
#define TY_SECONDARYDNS 131 |
Line 93
|
Line 94
|
static void IpcpNgShutdownVJ(Bund b); |
static void IpcpNgShutdownVJ(Bund b); |
#endif |
#endif |
|
|
static int IpcpSetCommand(Context ctx, int ac, char *av[], void *arg); | static int IpcpSetCommand(Context ctx, int ac, const char *const av[], const void *arg); |
|
|
/* |
/* |
* GLOBAL VARIABLES |
* GLOBAL VARIABLES |
Line 118
|
Line 119
|
IpcpSetCommand, NULL, 2, (void *) SET_YES}, |
IpcpSetCommand, NULL, 2, (void *) SET_YES}, |
{ "no [opt ...]", "Disable and deny option", |
{ "no [opt ...]", "Disable and deny option", |
IpcpSetCommand, NULL, 2, (void *) SET_NO}, |
IpcpSetCommand, NULL, 2, (void *) SET_NO}, |
{ NULL }, | { NULL, NULL, NULL, NULL, 0, NULL }, |
}; |
}; |
|
|
/* |
/* |
Line 131
|
Line 132
|
{ "COMPPROTO", TY_COMPPROTO, 4, 4, TRUE }, |
{ "COMPPROTO", TY_COMPPROTO, 4, 4, TRUE }, |
#endif |
#endif |
{ "IPADDR", TY_IPADDR, 4, 4, TRUE }, |
{ "IPADDR", TY_IPADDR, 4, 4, TRUE }, |
|
{ "MOBILEIP", TY_MOBILEIP, 6, 6, FALSE }, |
{ "PRIDNS", TY_PRIMARYDNS, 4, 4, TRUE }, |
{ "PRIDNS", TY_PRIMARYDNS, 4, 4, TRUE }, |
{ "PRINBNS", TY_PRIMARYNBNS, 4, 4, TRUE }, |
{ "PRINBNS", TY_PRIMARYNBNS, 4, 4, TRUE }, |
{ "SECDNS", TY_SECONDARYDNS, 4, 4, TRUE }, |
{ "SECDNS", TY_SECONDARYDNS, 4, 4, TRUE }, |
{ "SECNBNS", TY_SECONDARYNBNS, 4, 4, TRUE }, |
{ "SECNBNS", TY_SECONDARYNBNS, 4, 4, TRUE }, |
{ NULL } | { NULL, 0, 0, 0, 0 } |
}; |
}; |
|
|
static const struct confinfo gConfList[] = { |
static const struct confinfo gConfList[] = { |
Line 172
|
Line 174
|
IpcpFailure, |
IpcpFailure, |
NULL, |
NULL, |
NULL, |
NULL, |
NULL, | NULL, NULL, NULL, NULL |
}; |
}; |
|
|
/* |
/* |
Line 180
|
Line 182
|
*/ |
*/ |
|
|
int |
int |
IpcpStat(Context ctx, int ac, char *av[], void *arg) | IpcpStat(Context ctx, int ac, const char *const av[], const void *arg) |
{ |
{ |
#ifdef USE_NG_VJC |
#ifdef USE_NG_VJC |
char path[NG_PATHSIZ]; |
char path[NG_PATHSIZ]; |
Line 196 IpcpStat(Context ctx, int ac, char *av[], void *arg)
|
Line 198 IpcpStat(Context ctx, int ac, char *av[], void *arg)
|
#endif |
#endif |
char buf[48]; |
char buf[48]; |
|
|
|
(void)ac; |
|
(void)av; |
|
(void)arg; |
|
|
Printf("[%s] %s [%s]\r\n", Pref(fp), Fsm(fp), FsmStateName(fp->state)); |
Printf("[%s] %s [%s]\r\n", Pref(fp), Fsm(fp), FsmStateName(fp->state)); |
Printf("Allowed IP address ranges:\r\n"); |
Printf("Allowed IP address ranges:\r\n"); |
if (ipcp->conf.self_ippool[0]) { |
if (ipcp->conf.self_ippool[0]) { |
Line 974 IpcpNgShutdownVJ(Bund b)
|
Line 980 IpcpNgShutdownVJ(Bund b)
|
*/ |
*/ |
|
|
static int |
static int |
IpcpSetCommand(Context ctx, int ac, char *av[], void *arg) | IpcpSetCommand(Context ctx, int ac, const char *const av[], const void *arg) |
{ |
{ |
IpcpState const ipcp = &ctx->bund->ipcp; |
IpcpState const ipcp = &ctx->bund->ipcp; |
struct in_addr *ips; |
struct in_addr *ips; |