aboutsummaryrefslogtreecommitdiff
path: root/src/vpn
Commit message (Collapse)AuthorAge
...
* continuing refactoring of regex library structure, disambiguating symbol ↵Christian Grothoff2013-06-20
| | | | names between old regex library which is now internal and the public API; moving IP-to-regex conversion functions to tun library, as only vpn is using those to begin with
* -keep and drop are not needed here as we watch for disconnectsChristian Grothoff2013-06-12
|
* -moving to regexChristian Grothoff2013-06-05
|
* - complement HELPER API with functions to kill and wait on the helper processSree Harsha Totakura2013-05-09
| | | | | | - To shutdown quickly, have testbed first kill all sub-controller's helper processes first and wait later instead of kill & wait per each processes.
* Mingw-w64 compatibility for VPN helperLRN2013-04-21
|
* added privilege testing parameters for helper-vpn, exit and nat-client.Christian Fuchs2013-04-19
| | | | | todo: nat-server
* - bratao's fix to compile on w32Bart Polot2013-04-18
|
* -no booleanChristian Grothoff2013-04-15
|
* extended the GNUNET_OS_check_helper_binary parameters to do previlege Christian Fuchs2013-04-15
| | | | | | | | | | | | | | checking in windows. To do so, tested binaries must still be supplied with valid commandline arguments, but on windows gnunet will utilize the -d flag to run the programs initialization phase or privileged operations only. In these modes, a program will not enter its mainloop or communicate with the outside. updated relevant function calls gnunet-wide to meet the extended function parameters.
* added dryrun functionality to helper-vpn-windowsChristian Fuchs2013-04-05
|
* * added vpn and exit to the default build options for mingw/windows builds. ↵Christian Fuchs2013-03-22
| | | | | | | | | | | | This code is considered experimental and has not yet undergone intensive testing. Use it at your own peril, but we would still be really glad for feedback and bug reports! (thanks!) * fixed a typo in the exit-makefile (buildflags) * adjusted output of gnunet-helper-exit-windows to properly identify itself * updated driver-paths for looking for tap32/tap64
* * fixed incorrect doxygen commant fields in exit and vpn-helper-windowsChristian Fuchs2013-03-21
|
* added support for partial write to stdin/stdout.Christian Fuchs2013-01-31
| | | | | | | 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.
* added support for partial reads from stdinChristian Fuchs2013-01-31
|
* helper-vpn and helper-exit now are 64bit capabled.Christian Fuchs2013-01-31
| | | | | | added check if we are running on a win32/wow64/win64 host system.
* porting to W32 requires a port, yepeeChristian Grothoff2013-01-31
|
* some final code-beautification (coding style 4tw!)Christian Fuchs2013-01-31
| | | | | | removed a few obsolete variables
* added nice debug output for gnunet-herlper-vpn-windows.Christian Fuchs2013-01-30
|
* re-fixed incorrect from last commit... :-D forgot to save.Christian Fuchs2013-01-24
|
* added debug logics to print to and read from STDIN, instead of from Christian Fuchs2013-01-24
| | | | | | | | | | named pipes moved declaration of hdr outside of the ifs fixed an incorrect comparison introduced in last commit
* helper now always uses BOOL(winbool) instead of boolean to stay Christian Fuchs2013-01-24
| | | | | | | | | consistent attept_write now properly resets the read facility to IOSTATE_RESUME, in case read was stalled because write was busy
* added IOSTATE_RESUME and related code to state machinesChristian Fuchs2013-01-24
|
* -parse time nicelyChristian Grothoff2013-01-24
|
* -tiny fixmesChristian Grothoff2013-01-24
|
* added gnunet-header stripping and adding functionalityChristian Fuchs2013-01-24
| | | | | | | | woops logics bug discovered: when read goes into waiting, the output facility will not transfer the input buffer and forget about it silently...
* added ip-address remove functionsChristian Fuchs2013-01-24
| | | | | | | | | | | | | | | | | | | | | | | 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
* * a little bit of bugfixingChristian Fuchs2013-01-17
| | | | | | | | | | | * 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)
* minor style stuffChristian Grothoff2013-01-17
|
* more debugging work.Christian Fuchs2013-01-16
| | | | | | | | | | | | | | | | | 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.
* added calls for updating the driver in a for device. seems like this is Christian Fuchs2013-01-15
| | | | | | | | | mandatory when adding a new device node. unfortunately this is pretty slow... added new required include+library to link against: newdev.h/dll
* more bug fixingChristian Fuchs2013-01-15
|
* a bit of bugfixingChristian Fuchs2013-01-15
|
* final logics for run implementedChristian Fuchs2013-01-15
| | | | | | | added teardown functionality. now: testing...
* consolidated read and write functions, as we can read from a named pipe Christian Fuchs2013-01-10
| | | | | | | | | the same way as we can read from our TAP. added high-level description of attempt_read
* as discussed, vpn-helper-windows will only function if stdin/stdout are Christian Fuchs2013-01-10
| | | | | | | | | | handed down as pipes. helper will reopen stdin and stdout in overlapped mode. ReOpenFile requires WinXPSP2 or Win2003SP1.
* In Windows, pipes, files and the console have to be accessed Christian Fuchs2013-01-10
| | | | | | | | | | | | | | | 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.
* fixed a wrong conditionalChristian Fuchs2013-01-08
| | | | | | more research on the conin/stdin+overlapping issue.
* There are now four states for the OI facilities: Christian Fuchs2013-01-03
| | | | | | | | | | | | * 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
* added initial stuff for overlapped IO and event handlingChristian Fuchs2013-01-03
|
* * re-added mainloop for runChristian Fuchs2013-01-01
| | | | | | * started work on our select-equivalent for windows.
* * added tap version checking logics. Many tap32 versions are broken,Christian Fuchs2012-12-31
| | | | | | | | | | | | | | | | | | | | | | | 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!
* reworked vpn-helper to now use regular(!) char, instead of wchar, Christian Fuchs2012-12-29
| | | | | | | according to recommendations found in the C/C++-specs(wchar != unicode support, but may break compiler compatibility).
* -commentsChristian Grothoff2012-12-13
|
* Added basic functionality for setting IPv4/V6 addresses in win32 using Christian Fuchs2012-12-12
| | | | | | | | netsh. Added wrapper for launching programs in a windows shell. Added define for _tpopen
* grml, friendlyName is not friendly, because it does not help us for Christian Fuchs2012-12-11
| | | | | | | | 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
* added functionality to fetch the virtual interface's FriendlyName from Christian Fuchs2012-12-10
| | | | | | the registry. This information is needed for netsh later on.
* added unique additional hwid entry to allow us to find our individual Christian Fuchs2012-12-09
| | | | | | | | | | | 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
* solved fixme's, linked device handling functions to main program flow, Christian Fuchs2012-12-07
| | | | | | added some fixes here and there. added more comments to the code.
* -feedback on styleChristian Grothoff2012-12-06
|
* added teardown functionality for deconstructing the interface created by Christian Fuchs2012-12-05
| | | | | | the win32 vpn-helper.