Date: Tue, 23 Feb 1999 11:01:03 +0100 From: Stefan Bethke <stefan.bethke@hanse.de> To: freebsd-isdn@freebsd.org Subject: Patch: sppp fails to assign address to remote Message-ID: <119878.3128756463@d225.promo.de>
next in thread | raw e-mail | index | archive | help
--==========00136745========== Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline When dialling into i4b from a Mac or Windows machine (haven't tried = another i4b yet), something goes wrong when the remote requests an IP address (conf-req 0.0.0.0). Everything works fine with debug set on the interface; when I turn off debug, sppp seems to conf-nak the request with address 0.0.0.0 instead of the interface address. The problem seemingly is a misplaced brace in if_spppsubr.c around line 2705 in sppp_ipcp_RCR(). The following patch should eliminate the problem, and should make dial-in from Windows and Mac work.. Cheers, Stefan -- M=FChlendamm 12 | Voice +49-40-256848, +49-177-3504009 D-22089 Hamburg | e-mail: stefan.bethke@hanse.de Germany | stb@freebsd.org --==========00136745========== Content-Type: text/plain; charset=us-ascii; name="sppp-patch.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="sppp-patch.txt"; size=623 *** if_spppsubr.c.orig Tue Dec 1 21:20:21 1998 --- if_spppsubr.c Tue Feb 23 10:55:28 1999 *************** *** 2701,2712 **** else addlog("%s [not agreed] ", sppp_dotted_quad(desiredaddr)); - - p[2] = hisaddr >> 24; - p[3] = hisaddr >> 16; - p[4] = hisaddr >> 8; - p[5] = hisaddr; } break; } } --- 2701,2712 ---- else addlog("%s [not agreed] ", sppp_dotted_quad(desiredaddr)); } + + p[2] = hisaddr >> 24; + p[3] = hisaddr >> 16; + p[4] = hisaddr >> 8; + p[5] = hisaddr; break; } } --==========00136745==========-- 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?119878.3128756463>