aboutsummaryrefslogtreecommitdiff
path: root/src/vpn
AgeCommit message (Collapse)Author
2013-01-31added support for partial write to stdin/stdout.cfuchs
there seems to be no point in adding support for partial read from the TAP, as there is no delimiter and we get data on a per-frame level. git-svn-id: https://gnunet.org/svn/gnunet@25966 140774ce-b5e7-0310-ab8b-a85725594a96
2013-01-31added support for partial reads from stdincfuchs
git-svn-id: https://gnunet.org/svn/gnunet@25964 140774ce-b5e7-0310-ab8b-a85725594a96
2013-01-31helper-vpn and helper-exit now are 64bit capabled.cfuchs
added check if we are running on a win32/wow64/win64 host system. git-svn-id: https://gnunet.org/svn/gnunet@25959 140774ce-b5e7-0310-ab8b-a85725594a96
2013-01-31porting to W32 requires a port, yepeegrothoff
git-svn-id: https://gnunet.org/svn/gnunet@25956 140774ce-b5e7-0310-ab8b-a85725594a96
2013-01-31some final code-beautification (coding style 4tw!)cfuchs
removed a few obsolete variables git-svn-id: https://gnunet.org/svn/gnunet@25954 140774ce-b5e7-0310-ab8b-a85725594a96
2013-01-30added nice debug output for gnunet-herlper-vpn-windows.cfuchs
git-svn-id: https://gnunet.org/svn/gnunet@25952 140774ce-b5e7-0310-ab8b-a85725594a96
2013-01-24re-fixed incorrect from last commit... :-D forgot to save.cfuchs
git-svn-id: https://gnunet.org/svn/gnunet@25885 140774ce-b5e7-0310-ab8b-a85725594a96
2013-01-24added debug logics to print to and read from STDIN, instead of from cfuchs
named pipes moved declaration of hdr outside of the ifs fixed an incorrect comparison introduced in last commit git-svn-id: https://gnunet.org/svn/gnunet@25884 140774ce-b5e7-0310-ab8b-a85725594a96
2013-01-24helper now always uses BOOL(winbool) instead of boolean to stay cfuchs
consistent attept_write now properly resets the read facility to IOSTATE_RESUME, in case read was stalled because write was busy git-svn-id: https://gnunet.org/svn/gnunet@25883 140774ce-b5e7-0310-ab8b-a85725594a96
2013-01-24added IOSTATE_RESUME and related code to state machinescfuchs
git-svn-id: https://gnunet.org/svn/gnunet@25882 140774ce-b5e7-0310-ab8b-a85725594a96
2013-01-24-parse time nicelygrothoff
git-svn-id: https://gnunet.org/svn/gnunet@25873 140774ce-b5e7-0310-ab8b-a85725594a96
2013-01-24-tiny fixmesgrothoff
git-svn-id: https://gnunet.org/svn/gnunet@25872 140774ce-b5e7-0310-ab8b-a85725594a96
2013-01-24added gnunet-header stripping and adding functionalitycfuchs
woops logics bug discovered: when read goes into waiting, the output facility will not transfer the input buffer and forget about it silently... git-svn-id: https://gnunet.org/svn/gnunet@25871 140774ce-b5e7-0310-ab8b-a85725594a96
2013-01-24added ip-address remove functionscfuchs
newly set IP addresses now should expire upon reboot (buggy on some windows, but at least it solves the IP-persistence issues in win7 and above) cloned read functions to properly apply or strip the gnunet message header removed the status BOOL from the overlapped struct and made it local some fixes here and there added a lot of comments style adjustments TODO: * actually strip the gnunet message header or apply it again * test with the main vpn binary git-svn-id: https://gnunet.org/svn/gnunet@25870 140774ce-b5e7-0310-ab8b-a85725594a96
2013-01-17* a little bit of bugfixingcfuchs
* added functionality to remove ip addresses from our interfaces * some formatting work * added rety-loop for the interface-name resolver (retry up to 30 seconds) * set new ipv4/v6 addresses to be forgotten on bootup (store=active) * adjusted some debug output (added a few \n here and there) git-svn-id: https://gnunet.org/svn/gnunet@25816 140774ce-b5e7-0310-ab8b-a85725594a96
2013-01-17minor style stuffgrothoff
git-svn-id: https://gnunet.org/svn/gnunet@25809 140774ce-b5e7-0310-ab8b-a85725594a96
2013-01-16more debugging work.cfuchs
Registry is extremely slow at refreshing. inserted a makeshift sleep(5) to avoid retrieving outdated interface-information. added proper return-codes to set_address4/6 fixed incorrect string-length handling for the HWID tags updatedriverforplugandplaydevicesa now updates only the driver for our current device, no longer the other siblings too (for >10 devices, this could easily have taken > 60 seconds! ). removed inet_pton, as we require API version XPSP2 anyway. git-svn-id: https://gnunet.org/svn/gnunet@25805 140774ce-b5e7-0310-ab8b-a85725594a96
2013-01-15added calls for updating the driver in a for device. seems like this is cfuchs
mandatory when adding a new device node. unfortunately this is pretty slow... added new required include+library to link against: newdev.h/dll git-svn-id: https://gnunet.org/svn/gnunet@25802 140774ce-b5e7-0310-ab8b-a85725594a96
2013-01-15more bug fixingcfuchs
git-svn-id: https://gnunet.org/svn/gnunet@25801 140774ce-b5e7-0310-ab8b-a85725594a96
2013-01-15a bit of bugfixingcfuchs
git-svn-id: https://gnunet.org/svn/gnunet@25800 140774ce-b5e7-0310-ab8b-a85725594a96
2013-01-15final logics for run implementedcfuchs
added teardown functionality. now: testing... git-svn-id: https://gnunet.org/svn/gnunet@25799 140774ce-b5e7-0310-ab8b-a85725594a96
2013-01-10consolidated read and write functions, as we can read from a named pipe cfuchs
the same way as we can read from our TAP. added high-level description of attempt_read git-svn-id: https://gnunet.org/svn/gnunet@25743 140774ce-b5e7-0310-ab8b-a85725594a96
2013-01-10as discussed, vpn-helper-windows will only function if stdin/stdout are cfuchs
handed down as pipes. helper will reopen stdin and stdout in overlapped mode. ReOpenFile requires WinXPSP2 or Win2003SP1. git-svn-id: https://gnunet.org/svn/gnunet@25741 140774ce-b5e7-0310-ab8b-a85725594a96
2013-01-10In Windows, pipes, files and the console have to be accessed cfuchs
differently(in contrast to *nix). overlapping does not exist for console handles, and different functions are required to read/write/poll stdin/out. - THus, we can now detect the type of handle we got as stdin/stdout from our calling process. - Did a bit of refactoring. next: add logics to use the proper access mode depending on our handletype. git-svn-id: https://gnunet.org/svn/gnunet@25737 140774ce-b5e7-0310-ab8b-a85725594a96
2013-01-08fixed a wrong conditionalcfuchs
more research on the conin/stdin+overlapping issue. git-svn-id: https://gnunet.org/svn/gnunet@25713 140774ce-b5e7-0310-ab8b-a85725594a96
2013-01-03There are now four states for the OI facilities: cfuchs
* ready (to do work), * queued (waiting for async-io to return), * waiting (a read-facilities wait for its output partner to get process) * failed (if a socket error occured) added attempt_tap_read machine. reworked run() for overlapped IO git-svn-id: https://gnunet.org/svn/gnunet@25683 140774ce-b5e7-0310-ab8b-a85725594a96
2013-01-03added initial stuff for overlapped IO and event handlingcfuchs
git-svn-id: https://gnunet.org/svn/gnunet@25677 140774ce-b5e7-0310-ab8b-a85725594a96
2013-01-01* re-added mainloop for runcfuchs
* started work on our select-equivalent for windows. git-svn-id: https://gnunet.org/svn/gnunet@25668 140774ce-b5e7-0310-ab8b-a85725594a96
2012-12-31* added tap version checking logics. Many tap32 versions are broken,cfuchs
Only version 9.8 and later support IPv6, 9.8 is broken with IPv4. Thus, we are using the same minium version as openvpn 2.3: tap32-9.9 * created our TAP/TUN handle-object (equivalent to the *nix init_tun() function), this still requires some more logics to be complete. * added logics to set the tun up (+a fixed sleep, to wait for it to come up) * we now also store the device's GUID, as we need it for creating the handle. * added the exports of tap32: src/include/tap_windows.h , for the sake of upgradability. This file contains version-specific defines for the driver. * happy new year! git-svn-id: https://gnunet.org/svn/gnunet@25667 140774ce-b5e7-0310-ab8b-a85725594a96
2012-12-29reworked vpn-helper to now use regular(!) char, instead of wchar, cfuchs
according to recommendations found in the C/C++-specs(wchar != unicode support, but may break compiler compatibility). git-svn-id: https://gnunet.org/svn/gnunet@25665 140774ce-b5e7-0310-ab8b-a85725594a96
2012-12-13-commentsgrothoff
git-svn-id: https://gnunet.org/svn/gnunet@25438 140774ce-b5e7-0310-ab8b-a85725594a96
2012-12-12Added basic functionality for setting IPv4/V6 addresses in win32 using cfuchs
netsh. Added wrapper for launching programs in a windows shell. Added define for _tpopen git-svn-id: https://gnunet.org/svn/gnunet@25432 140774ce-b5e7-0310-ab8b-a85725594a96
2012-12-11grml, friendlyName is not friendly, because it does not help us for cfuchs
finding anything. Switched over to backup plan: * lookup the devices's name directly in registry via the PNPInterfaceID. Registry fun, yey! * added a few fixes here and there git-svn-id: https://gnunet.org/svn/gnunet@25401 140774ce-b5e7-0310-ab8b-a85725594a96
2012-12-10added functionality to fetch the virtual interface's FriendlyName from cfuchs
the registry. This information is needed for netsh later on. git-svn-id: https://gnunet.org/svn/gnunet@25378 140774ce-b5e7-0310-ab8b-a85725594a96
2012-12-09added unique additional hwid entry to allow us to find our individual cfuchs
virtual interface again. Needed, because netsh requires us to resolve the devices name as string, which can not be derived off the deviceinfoset directly. we are now using the handed over devicename + our PID the result looks something like this: gnunet-vpn13381 git-svn-id: https://gnunet.org/svn/gnunet@25336 140774ce-b5e7-0310-ab8b-a85725594a96
2012-12-07solved fixme's, linked device handling functions to main program flow, cfuchs
added some fixes here and there. added more comments to the code. git-svn-id: https://gnunet.org/svn/gnunet@25309 140774ce-b5e7-0310-ab8b-a85725594a96
2012-12-06-feedback on stylegrothoff
git-svn-id: https://gnunet.org/svn/gnunet@25286 140774ce-b5e7-0310-ab8b-a85725594a96
2012-12-05added teardown functionality for deconstructing the interface created by cfuchs
the win32 vpn-helper. git-svn-id: https://gnunet.org/svn/gnunet@25249 140774ce-b5e7-0310-ab8b-a85725594a96
2012-12-03Added logics to install virtual networks interfaces for gnunet-vpn in cfuchs
win32 based on the info that can be found in the MSDN. Current revision: http://msdn.microsoft.com/en-us/library/windows/hardware/ff549791%28v=vs.85%29.aspx git-svn-id: https://gnunet.org/svn/gnunet@25209 140774ce-b5e7-0310-ab8b-a85725594a96
2012-11-26added libraries for setupapi & dependenciescfuchs
git-svn-id: https://gnunet.org/svn/gnunet@25133 140774ce-b5e7-0310-ab8b-a85725594a96
2012-11-16- added vpn helper stub for win32 buildscfuchs
- modified vpn-makefile definitions to process gnunet-helper-vpn-windows instead of the regular one when using mingw as toolchain git-svn-id: https://gnunet.org/svn/gnunet@24991 140774ce-b5e7-0310-ab8b-a85725594a96
2012-11-05-fix libexec issue: SUID checkgrothoff
git-svn-id: https://gnunet.org/svn/gnunet@24719 140774ce-b5e7-0310-ab8b-a85725594a96
2012-11-04-misc bugfixes, travel hackinggrothoff
git-svn-id: https://gnunet.org/svn/gnunet@24693 140774ce-b5e7-0310-ab8b-a85725594a96
2012-11-02Using regex for exit/vpnszengel
git-svn-id: https://gnunet.org/svn/gnunet@24682 140774ce-b5e7-0310-ab8b-a85725594a96
2012-10-29installing all service, daemon and helper binaries to lib/gnunet/libexec/; ↵grothoff
updating code to run binaries from new location, which is no longer in PATH git-svn-id: https://gnunet.org/svn/gnunet@24593 140774ce-b5e7-0310-ab8b-a85725594a96
2012-10-26-bugfixes, code cleanupgrothoff
git-svn-id: https://gnunet.org/svn/gnunet@24573 140774ce-b5e7-0310-ab8b-a85725594a96
2012-10-09-getting rid of silly, stupid, useless, often wrong DEFAULTCONFIG settinggrothoff
git-svn-id: https://gnunet.org/svn/gnunet@24237 140774ce-b5e7-0310-ab8b-a85725594a96
2012-10-07-chaning multihashmap API to allow option for avoiding key allocationgrothoff
git-svn-id: https://gnunet.org/svn/gnunet@24216 140774ce-b5e7-0310-ab8b-a85725594a96
2012-09-14-doxygengrothoff
git-svn-id: https://gnunet.org/svn/gnunet@23777 140774ce-b5e7-0310-ab8b-a85725594a96
2012-08-29only use control pipe with helpers IF the helper actually supports itgrothoff
git-svn-id: https://gnunet.org/svn/gnunet@23497 140774ce-b5e7-0310-ab8b-a85725594a96