allow coexistance of N build and AC build.
[tomato.git] / release / src / router / pptp-client / TODO
blob3d7c12519fc4fa25214b83a8ea06348a124accad
1 8th April 2005
3 On Thu, Apr 07, 2005 at 07:36:41AM -0700, Roark Hennessy wrote:
4 > I find in order to get the tunnel working I have to do a
5 > route add -host <target_vpn_addr> gateway <my-netgear-wireless-router> dev
6 +ethN
7 > Can this be done automatically in the config somewhere?
9 Not everybody needs this in order to get the tunnel working, it depends
10 on the configuration of the server, and it is problematic calculating
11 the correct route to add.  However, the GUI PPTP client (pptpconfig)
12 does this automatically, and when done unnecessarily it seems harmless.
14 I'll take a patch that implements the same thing in C within pptp, so
15 that people who don't use the GUI get it done for them.
17 Here's what the pptpconfig.php program does;
19 - the IP address of the PPTP server is obtained from the name, using
20   gethostbyname(),
22 - the command "ip route get $ip | head -1" is executed, where $ip is the
23   IP address determined above, and the result of the command is stored;
24   it is a route specification of the path to the server before the
25   tunnel is started,
27 - in routing_start(), an "ip route add" command is done using the route
28   specification obtained above,
30 - when the tunnel is shutdown, an "ip route del" command is done using
31   the same route specification.
33 I would prefer that the patch implements this by embedding the
34 equivalent syscalls within the pptp program, rather than use system() or
35 popen() to execute the /usr/sbin/ip program.
37 I would also prefer that there be a command line option for disabling
38 the feature.
42 10th March 2005
44 - call manager is not being reused as it was designed to be; if a
45 tunnel is started within a minute of a tunnel being stopped, it does
46 not succeed; symptom is LCP ConfReq's without any traffic from the
47 server.
51 - finish --max-echo-wait
53 11th August 2004
55 - add two configurable timeouts for echo generation and echo reply timeout,
56   requested by Tobias Brox.
58 - ship .spec with tarball.
60 13th February 2004
62 - timeout connect earlier, with option to extend timeout.
64 20th May 2003
66 - GRE stats to a pipe or shared memory, for GUI to use
68 15th February 2003
70 - pptp.8 update man page for new options
71 - pptp.c long_options array should use NULL for second last arg, not 0
72 - pptp.c use getopt_long more simply, e.g. set flags in option array
74 1st May 2002
76 - log failure of write() to raw socket, as Ryan Murray
77   <rmurray@debian.org> has encountered an EPERM situation that was not
78   being logged.
80 12th February 2002
82 - clean up -T errors in pptp-command,
84 23rd December 2000
86 Things to do:
87   Autoconf/automake this beastie.
88   Fix do_gre_copy semantics to properly handle multiple calls.
89    Like the call manager, there should only be one gre-copy process
90    per connection.  This process needs to funnel packets to different
91    output tty's, though, depending on the call-id embedded in the
92    GRE encapsulation.  pptp.c must then be modified to use an
93    already-existing gre-copy process in the same way it uses an
94    already-existing call manager.
96 $Id: TODO,v 1.26 2006/02/13 03:06:25 quozl Exp $