--- embedaddon/mpd/src/ipcp.c 2013/07/22 08:44:29 1.1.1.1 +++ embedaddon/mpd/src/ipcp.c 2021/03/17 00:39:23 1.1.1.2 @@ -43,6 +43,7 @@ #define TY_IPADDRS 1 #define TY_COMPPROTO 2 #define TY_IPADDR 3 + #define TY_MOBILEIP 4 #define TY_PRIMARYDNS 129 #define TY_PRIMARYNBNS 130 #define TY_SECONDARYDNS 131 @@ -93,7 +94,7 @@ static void IpcpNgShutdownVJ(Bund b); #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 @@ -118,7 +119,7 @@ IpcpSetCommand, NULL, 2, (void *) SET_YES}, { "no [opt ...]", "Disable and deny option", IpcpSetCommand, NULL, 2, (void *) SET_NO}, - { NULL }, + { NULL, NULL, NULL, NULL, 0, NULL }, }; /* @@ -131,11 +132,12 @@ { "COMPPROTO", TY_COMPPROTO, 4, 4, TRUE }, #endif { "IPADDR", TY_IPADDR, 4, 4, TRUE }, + { "MOBILEIP", TY_MOBILEIP, 6, 6, FALSE }, { "PRIDNS", TY_PRIMARYDNS, 4, 4, TRUE }, { "PRINBNS", TY_PRIMARYNBNS, 4, 4, TRUE }, { "SECDNS", TY_SECONDARYDNS, 4, 4, TRUE }, { "SECNBNS", TY_SECONDARYNBNS, 4, 4, TRUE }, - { NULL } + { NULL, 0, 0, 0, 0 } }; static const struct confinfo gConfList[] = { @@ -172,7 +174,7 @@ IpcpFailure, NULL, NULL, - NULL, + NULL, NULL, NULL, NULL }; /* @@ -180,7 +182,7 @@ */ 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 char path[NG_PATHSIZ]; @@ -196,6 +198,10 @@ IpcpStat(Context ctx, int ac, char *av[], void *arg) #endif char buf[48]; + (void)ac; + (void)av; + (void)arg; + Printf("[%s] %s [%s]\r\n", Pref(fp), Fsm(fp), FsmStateName(fp->state)); Printf("Allowed IP address ranges:\r\n"); if (ipcp->conf.self_ippool[0]) { @@ -974,7 +980,7 @@ IpcpNgShutdownVJ(Bund b) */ 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; struct in_addr *ips;