Date: 14 Aug 1995 18:13:55 +0800 From: peter@haywire.dialix.com (Peter Wemm) To: freebsd-current@freebsd.org Subject: Re: ioctl(SIOCAIFADDR): File exists Message-ID: <40n7l3$ft6$1@haywire.DIALix.COM> References: <40mduf$fvb$1@haywire.DIALix.COM>, <199508140542.HAA11158@uriah.heep.sax.de>
next in thread | previous in thread | raw e-mail | index | archive | help
j@uriah.heep.sax.de (J Wunsch) writes: >As Peter Wemm wrote: >> >> There was a "feature" in 2.0.5 that meant that the local address of a >> point-to-point link could not be within the same network as any other >> interface, with the local subnet size being decided by the netmask of >> the remote network. >This sounds like it could be it (even though it's surprising that i >can log into the machine succesfully using another address, while i've >always been unsuccesful with the same address -- the other address has >been just 4 above). Essectially, it becomes non-deterministic.. It depends on the ordering of the routes and the interface lists.. I never really figured out exactly what the variables were, I just nuked the problem.. :-) >> There is an undocumented option in the kernel, called something like >> P2P_LOCALADDR_SHARE, which works around the problem (with a slight >> bug) after I made a lot of noise about this "feature" before 2.0.5 was >> released. >What's the `slight bug'? Can we use it nevertheless? In one of the #ifdef cases, I accidently typed if (ifp->if_flags & IFF_POINTOPOINT) if (equal(addr, ifa->ifa_addr)) ^^^^^^^^ Should be ifa_dstaddr! return (ifa); It doesn't have any affect, except possibly if you have aliases on your PPP link.. in which case, connecting to a remote address could choose the wrong local address - but that's not much different to the original code, so it's marginally better, not worse. (better, because netmasks are not applied). Cheers, -Peter >-- >cheers, J"org >joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ >Never trust an operating system you don't have sources for. ;-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?40n7l3$ft6$1>