Andrey A. Chernov f7163ba751 Make user-level PPP on-demand with dynamic IP actually work.
Story so fr:
1) PPP on-demand with static IP works.
2) PPP on-demand with dynamic IP says "Host is down" on any IP request
The problem is that tun driver check its READY state by *first* ifconfig address.
i.e.:
set ifaddr <addr> <addr2>
works (static IP) and
set ifaddr 0 <addr2>
not works (dynamic IP) because first address is equal 0.
Since tun is always POINTOPOINT interface, dst address is more meaningfull.
I change checking to second (dst) address in READY test.
PPP on-demand finally works.
1996-03-08 11:07:07 +00:00
..
1994-08-21 05:11:48 +00:00
1996-02-06 18:51:28 +00:00
1996-02-06 18:51:28 +00:00
1996-02-06 18:51:28 +00:00
1994-11-16 02:16:18 +00:00
1996-02-06 18:51:28 +00:00
1995-05-30 08:16:23 +00:00
1996-02-06 18:51:28 +00:00
1996-02-06 18:51:28 +00:00
1996-02-06 18:51:28 +00:00
1996-02-06 18:51:28 +00:00
1996-02-06 18:51:28 +00:00
1996-02-09 09:23:56 +00:00
1995-02-25 15:57:55 +00:00
1996-02-06 18:51:28 +00:00
1995-11-16 19:00:27 +00:00
1995-04-29 15:24:00 +00:00