Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Jan 2000 15:01:38 +0200
From:      Oren Sarig <sarig@bezeqint.net>
To:        Jan Sparud <jan@sparud.net>, freebsd-isdn@freebsd.org
Subject:   Re: LCP loop problem fixed
Message-ID:  <000b01bf5b6a$d55f0b20$475719d4@asmodean>
References:  <14456.50094.237265.228095@hinken.sparud.net>

next in thread | previous in thread | raw e-mail | index | archive | help
WOO!! Cheers!! Thanks alot!

I tried the diffs, and they got me going (Well almost - I had to play
with the lcp-timeout, but your patch to spppcontrol was very very
useful).

Well, now that I'm passed the lcp part, I'm in the ipcp part :b.

I can't really check if my connection is working, because I need some
IP to ping, and I don't have my DNS servers, so I can't check domains.
I'll check that later. But anyways, after the lcp part passes
painlessly (thanks to Jan here), I get around 10 ipcp messages per sec
with the debug option set on for isp0... tcpdump shows this message:

14:45:50.012088 ID-162 IPCP: IP-Address=10.10.10.10
                         03a2 000a 0306 0a0a 0a0a

Now, I configures isp0 this way:
ifconfig isp0 inet 0.0.0.0 10.10.10.10 mtu 500 netmask 255.255.255.0
So 10.10.10.10 is the address I gave to my ISP. After I pass the LCP
part, spppcontrol isp0 shows I am in the "network" stage, and ifconfig
isp0 shows "inet (my newly assigned IP) -> 10.10.10.10". Should I have
known by this time my ISP's IP too? If not, what cases the 10 messages
per sec, or is that normal?

TIA,
Oren Sarig
sarig@bezeqint.net.il

> *** if_spppsubr.c.0.90 Wed Jan 5 15:34:40 2000 --- if_spppsubr.c Sun
> Jan 9 17:58:52 2000 *************** *** 1926,1932 ****
>   sp->lcp.mru = sp->lcp.their_mru = PP_MTU;
>
>   /* Note that these values are  relevant for all control protocols
*/
> ! sp->lcp.timeout = 3 * hz;
>
>   sp->lcp.max_terminate = 2;
>   sp->lcp.max_configure = 10;
> --- 1934,1940 ----
>   sp->lcp.mru = sp->lcp.their_mru = PP_MTU;
>
>   /* Note that these values are  relevant for all control protocols
*/
> ! sp->lcp.timeout = 1 * hz;
>
>   sp->lcp.max_terminate = 2;
>   sp->lcp.max_configure = 10;
> ***************
> *** 4221,4227 ****
>   * secrets are cleared if the authentication protocol is
>   * reset to 0.
>   */
> ! if (sp->pp_phase != PHASE_DEAD)
>   return EBUSY;
>
>   if ((spr.defs.myauth.proto != 0 && spr.defs.myauth.proto !=
PPP_PAP &&
> --- 4234,4241 ----
>   * secrets are cleared if the authentication protocol is
>   * reset to 0.
>   */
> ! if (!((sp->pp_phase == PHASE_DEAD) ||
> !       (sp->pp_phase == PHASE_ESTABLISH)))
>   return EBUSY;
>
>   if ((spr.defs.myauth.proto != 0 && spr.defs.myauth.proto !=
PPP_PAP &&
> ***************
> *** 4252,4257 ****
> --- 4266,4275 ----
>   if (spr.defs.hisauth.secret[0] != '\0')
>   bcopy(spr.defs.hisauth.secret, sp->hisauth.secret,
>         AUTHKEYLEN);
> + }
> + if (spr.defs.lcp.timeout != 0) {
> + /* Set the LCP timeout */
> + sp->lcp.timeout = spr.defs.lcp.timeout;
>   }
>   break;
>
>
> *** spppcontrol.c.090 Sun Jan  9 15:18:47 2000
> --- spppcontrol.c Sun Jan  9 16:01:11 2000
> ***************
> *** 84,89 ****
> --- 84,92 ----
>   #define PPP_PAP 0xc023
>   #define PPP_CHAP 0xc223
>
> + /* Hmm */
> + #define HZ 100
> +
>   int
>   main(int argc, char **argv)
>   {
> ***************
> *** 190,196 ****
>   spr.defs.hisauth.flags |= AUTHFLAG_NORECHALLENGE;
>   else if (strcmp(argv[0], "rechallenge") == 0)
>   spr.defs.hisauth.flags &= ~AUTHFLAG_NORECHALLENGE;
> ! else
>   errx(EX_DATAERR, "bad parameter: \"%s\"", argv[0]);
>
>   argv++;
> --- 193,205 ----
>   spr.defs.hisauth.flags |= AUTHFLAG_NORECHALLENGE;
>   else if (strcmp(argv[0], "rechallenge") == 0)
>   spr.defs.hisauth.flags &= ~AUTHFLAG_NORECHALLENGE;
> ! else if (startswith("lcp-timeout=")) {
> ! int timeout_arg = atoi(argv[0]+off);
> ! if ((timeout_arg > 20000) || (timeout_arg <= 0))
> ! errx(EX_DATAERR, "bad lcp timeout value: %s",
> !      argv[0]+off);
> ! spr.defs.lcp.timeout = timeout_arg * HZ / 1000;
> ! } else
>   errx(EX_DATAERR, "bad parameter: \"%s\"", argv[0]);
>
>   argv++;
> ***************
> *** 232,237 ****
> --- 241,248 ----
>          AUTHNAMELEN, sp->defs.hisauth.name,
>          authflags(sp->defs.hisauth.flags));
>   }
> + printf("\tlcp timeout: %.3f s\n",
> +        (double)sp->defs.lcp.timeout / HZ);
>   }
>
>   const char *




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isdn" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000b01bf5b6a$d55f0b20$475719d4>