* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
-#define RCSID "$Id: lcp.c,v 1.52 2000/04/15 01:27:12 masputra Exp $"
+#define RCSID "$Id: lcp.c,v 1.55 2000/04/29 12:32:09 paulus Exp $"
/*
* TODO:
int lcp_echo_interval = 0; /* Interval between LCP echo-requests */
int lcp_echo_fails = 0; /* Tolerance to unanswered echo-requests */
bool lax_recv = 0; /* accept control chars in asyncmap */
+bool noendpoint = 0; /* don't send/accept endpoint discriminator */
static int setescape __P((char **));
#ifdef HAVE_MULTILINK
-bool noendpoint = 0; /* don't send/accept endpoint discriminator */
static int setendpoint __P((char **));
#endif /* HAVE_MULTILINK */
OPT_A2COPY, &lcp_allowoptions[0].neg_ssnhf },
{ "endpoint", o_special, setendpoint,
"Endpoint discriminator for multilink" },
+#endif /* HAVE_MULTILINK */
{ "noendpoint", o_bool, &noendpoint,
"Don't send or accept multilink endpoint discriminator", 1 },
-#endif /* HAVE_MULTILINK */
{NULL}
};
#ifdef CBCP_SUPPORT
ao->neg_cbcp = 1;
#endif
-#ifdef HAVE_MULTILINK
ao->neg_endpoint = 1;
-#endif
BZERO(xmit_accm[unit], sizeof(xmit_accm[0]));
xmit_accm[unit][3] = 0x60000000;
{
lcp_options *wo = &lcp_wantoptions[f->unit];
lcp_options *go = &lcp_gotoptions[f->unit];
+ lcp_options *ao = &lcp_allowoptions[f->unit];
wo->magicnumber = magic();
wo->numloops = 0;
go->neg_ssnhf = 0;
go->neg_endpoint = 0;
}
+ if (noendpoint)
+ ao->neg_endpoint = 0;
peer_mru[f->unit] = PPP_MRU;
auth_reset(f->unit);
}
break;
case CI_EPDISC:
- if (!ao->neg_endpoint || !multilink ||
+ if (!ao->neg_endpoint ||
cilen < CILEN_CHAR ||
cilen > CILEN_CHAR + MAX_ENDP_LEN) {
orc = CONFREJ;