… | |
… | |
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | GNU General Public License for more details. |
15 | GNU General Public License for more details. |
16 | |
16 | |
17 | You should have received a copy of the GNU General Public License |
17 | You should have received a copy of the GNU General Public License |
18 | along with gvpe; if not, write to the Free Software |
18 | along with gvpe; if not, write to the Free Software |
19 | Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 | Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
20 | */ |
20 | */ |
21 | |
21 | |
22 | #include <cstdio> |
22 | #include <cstdio> |
23 | #include <cstring> |
23 | #include <cstring> |
24 | #include <cerrno> |
24 | #include <cerrno> |
… | |
… | |
65 | |
65 | |
66 | #define MTU MAX_MTU |
66 | #define MTU MAX_MTU |
67 | |
67 | |
68 | // BIGGEST hack of 'em all |
68 | // BIGGEST hack of 'em all |
69 | // will be casted to data_packet, due to structural similarity |
69 | // will be casted to data_packet, due to structural similarity |
70 | struct vpn_packet_t : net_packet { |
70 | struct vpn_packet_t : net_packet |
|
|
71 | { |
71 | u8 data[MAXSIZE]; |
72 | u8 data[MAXSIZE]; |
72 | }; |
73 | }; |
73 | |
74 | |
74 | static bool overwrite_mac; |
75 | static bool overwrite_mac; |
75 | |
76 | |