Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 08 Dec 1999 10:10:08 +0100
From:      Gary Jennejohn <garyj@peedub.muc.de>
To:        Juergen Lock <nox@jelal.kn-bremen.de>
Cc:        freebsd-isdn@FreeBSD.ORG
Subject:   Re: i4b syncppp not talking with Ascend Max - followup
Message-ID:  <199912080910.KAA06613@peedub.muc.de>
In-Reply-To: Your message of "Tue, 07 Dec 1999 21:27:57 %2B0100." <19991207212756.A1824@saturn.kn-bremen.de> 

next in thread | previous in thread | raw e-mail | index | archive | help
As a followup to my previous mail, it seems like this trivial change
should allow each isp interface (up to 15) to be assigned a unique
address. I expect that this would eliminate the problems which we've
been seeing when more than one interface has 0.0.0.0/0.0.0.1 assigned,
since we could now use 0.0.0.0/[0.0.0.1 thru 0.0.0.15] instead, which
should be enough for most users ;-)

This diff is against the code in FreeBSD-current and is untested.

Beware ! Cut & paste.

*** /sys/net/if_spppsubr.c.orig Wed Dec  8 09:54:36 1999
--- /sys/net/if_spppsubr.c      Wed Dec  8 10:09:09 1999
***************
*** 2656,2665 ****
                        desiredaddr = p[2] << 24 | p[3] << 16 |
                                p[4] << 8 | p[5];
                        if (desiredaddr == hisaddr ||
!                           (hisaddr == 1 && desiredaddr != 0)) {
                                /*
                                 * Peer's address is same as our value,
!                                * or we have set it to 0.0.0.1 to
                                 * indicate that we do not really care,
                                 * this is agreeable.  Gonna conf-ack
                                 * it.
--- 2656,2666 ----
                        desiredaddr = p[2] << 24 | p[3] << 16 |
                                p[4] << 8 | p[5];
                        if (desiredaddr == hisaddr ||
!                           (hisaddr > 0 && hisaddr <= 15 && desiredaddr != 0)) {
                                /*
                                 * Peer's address is same as our value,
!                                * or we have set it to 0.0.0.1 thru
!                                * 0.0.0.15 to
                                 * indicate that we do not really care,
                                 * this is agreeable.  Gonna conf-ack
                                 * it.

---
Gary Jennejohn / garyj@muc.de garyj@fkr.cpqcorp.net gj@freebsd.org




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?199912080910.KAA06613>