On Wed, 5 May 1999 [EMAIL PROTECTED] wrote:
> The problem comes from a test in the kernel (only tested in 2.0.x) for a
> 0.0.0.0 ip address to handle address hunting (eg bootp). If there is a
> device configured (up) on the system with a 0.0.0.0 ip address then all
> addresses will be recognised as local and the local arp address returned.
> However, addresses on the ppp link do not get handled in the same way and
> appear to be immune from this problem. As diald configures the slip device
> to have a 0.0.0.0 address when the ppp link is up all addresses not destined
> for the ppp link are matched to the local arp address. To overcome this
> problem we commented out the line and the end of route.c which ifconfigs the
> slip address to 0.0.0.0. This removed the connectivity problem but left two
> default routes in the routing table. To solve this we first removed any
> existing 0.0.0.0 route in the route table (using addroute) before adding the
> new ppp route. i.e route del 0.0.0.0. There is still another route for the
> dormant slip connection in the routing table but as this uses a reserved
> provate address it is unlikely to be a problem.
On 2.2.x kernels setting an address of 0.0.0.0 simply deletes
the address. On 2.0.x you can actually *have* a zero address.
It is actually wrong to leave any ppp or slip interface up.
The auto-allocation the kernel does treats an up interface
as in use even if there is no pppd associated with it so you
get a gradual leak of ppp interfaces if your system never gets
rebooted (like mine). Come to that if the remote end disconnects
it is wrong to do *anything* with the interface. By the time we
know about it pppd has already downed it so some other link could
have been allocated it and be using it. Hmmm... it would also be
wrong to delete routes through it then because they should not
be ours anyway... Not that I've ever seen evidence of such a
race condition... I'm rambling now, aren't I?
Mike
--
.----------------------------------------------------------------------.
| Mike Jagdis | Internet: [EMAIL PROTECTED] |
| 280, Silverdale Road, Earley, | Voice: +44 118 926 6996 |
| Reading RG6 7NU ENGLAND | Work: +44 118 989 0403 |
`----------------------------------------------------------------------'
-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]