1 | /* |
1 | /* |
2 | vpn.C -- handle the protocol, encryption, handshaking etc. |
2 | vpn.C -- handle the protocol, encryption, handshaking etc. |
|
|
3 | Copyright (C) 2003 Marc Lehmann <pcg@goof.com> |
3 | |
4 | |
4 | This program is free software; you can redistribute it and/or modify |
5 | This program is free software; you can redistribute it and/or modify |
5 | it under the terms of the GNU General Public License as published by |
6 | it under the terms of the GNU General Public License as published by |
6 | the Free Software Foundation; either version 2 of the License, or |
7 | the Free Software Foundation; either version 2 of the License, or |
7 | (at your option) any later version. |
8 | (at your option) any later version. |
… | |
… | |
39 | |
40 | |
40 | #include "connection.h" |
41 | #include "connection.h" |
41 | #include "util.h" |
42 | #include "util.h" |
42 | #include "vpn.h" |
43 | #include "vpn.h" |
43 | |
44 | |
|
|
45 | vpn network; // THE vpn (bad design...) |
|
|
46 | |
44 | ///////////////////////////////////////////////////////////////////////////// |
47 | ///////////////////////////////////////////////////////////////////////////// |
45 | |
48 | |
46 | const char *vpn::script_if_up () |
49 | const char *vpn::script_if_up () |
47 | { |
50 | { |
48 | // the tunnel device mtu should be the physical mtu - overhead |
51 | // the tunnel device mtu should be the physical mtu - overhead |