aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix bugHEADmasterMatt Dunwoodie2019-10-291-1/+1
|
* Cleanup kernel side IOCTLMatt Dunwoodie2019-10-291-61/+32
|
* Add -wgpeer to remove a single peerMatt Dunwoodie2019-10-291-13/+27
|
* Update ifconfig patchMatt Dunwoodie2019-10-291-7/+9
|
* Send keepalive instantly when setting persistent keepaliveMatt Dunwoodie2019-10-281-1/+2
|
* Precompute peer keys when updating local staticMatt Dunwoodie2019-10-271-10/+27
|
* Add persistent keepalive flag to IOCTLMatt Dunwoodie2019-10-273-5/+17
|
* Add macro to loop through IOCTL peers + cidrsMatt Dunwoodie2019-10-272-3/+8
|
* Wait for serializer to purge packetsMatt Dunwoodie2019-10-271-0/+2
|
* IOCTL cleanupMatt Dunwoodie2019-10-274-490/+495
|
* Add IP roamingMatt Dunwoodie2019-10-262-15/+31
|
* Small bugMatt Dunwoodie2019-10-261-2/+2
|
* Fixup ifconfig.c patchMatt Dunwoodie2019-10-251-12/+12
|
* Replace refcnt with queue_barrier and queue_purgeMatt Dunwoodie2019-10-252-123/+47
|
* Separate wg_noise_keypair_put and wg_noise_keypair_destroyMatt Dunwoodie2019-10-251-25/+28
|
* Clean up codeMatt Dunwoodie2019-10-252-122/+193
|
* Fix counter readingMatt Dunwoodie2019-10-212-6/+13
|
* Fix read/write order of kp_previous_keypairMatt Dunwoodie2019-10-211-1/+1
|
* Really fix ifconfig patchMatt Dunwoodie2019-10-211-13/+13
|
* Fix ifconfig patchMatt Dunwoodie2019-10-201-1/+1
|
* Redesign with base off linux moduleMatt Dunwoodie2019-10-204-2474/+3582
|
* Move all relevant functions to if_wg.cMatt Dunwoodie2019-10-1311-1798/+1451
|
* Update wireguard.c includesMatt Dunwoodie2019-10-091-1/+1
|
* Remove wg_peer_attach_sessionMatt Dunwoodie2019-10-091-37/+27
| | | | Put all the session initialisation into wg_peer_new_session
* Permission checks on keys probably don't belong hereMatt Dunwoodie2019-10-093-17/+14
|
* Move wg_device_make_cookie -> wg_device_tx_cookieMatt Dunwoodie2019-10-083-28/+24
|
* Fix a number of bugsMatt Dunwoodie2019-10-075-40/+59
|
* Add beginnings of mutex filled get* functionsMatt Dunwoodie2019-10-072-3/+4
|
* Use mutexes in wireguard rather than rwlocksMatt Dunwoodie2019-10-072-200/+225
| | | | | | | | | | | | There are still some nasty refcnt leaks when returning from wireguard.h, especially when an error occurs. TODO set a standard as for what to do when returning an error: * Leave session and put based on session == NULL * Always set session and always drop * Set session = NULL and drop ref I'm leaning towards the last
* Couple of small fixesMatt Dunwoodie2019-10-074-10/+32
|
* Move mutex and refcnt to fixedmapMatt Dunwoodie2019-10-065-123/+96
|
* Refactoring of {s,g}et_* to *_{s,g}etMatt Dunwoodie2019-10-054-46/+43
|
* Add notify to alert new session has been createdMatt Dunwoodie2019-10-053-1/+26
|
* Modify if_wg.h interfaceMatt Dunwoodie2019-10-054-120/+108
|
* New idea again. Please bear with meMatt Dunwoodie2019-10-034-80/+69
|
* A few small bugfixesMatt Dunwoodie2019-10-032-33/+69
| | | | | | | | | | * Make sure peer sessions are removed when dropping peer * Free correct size in wg_softc_route_delete * Extract softc_peer_{add,delete} * Delete all peers when destroying interface We probably want a free function so we can delete all peers while dropping the wg_device.
* Further simplify the wireguard.h interfaceMatt Dunwoodie2019-10-032-39/+49
|
* Move wg_peer_ref to wg_device_new_peerMatt Dunwoodie2019-10-023-2/+4
|
* Add initiation attempt resetMatt Dunwoodie2019-10-023-4/+15
|
* Add debug messages to ref countingMatt Dunwoodie2019-10-021-1/+15
|
* Minor lock changesMatt Dunwoodie2019-10-022-8/+6
|
* Fix lock ordering in tx_initiation, not perfect though.Matt Dunwoodie2019-10-021-3/+5
|
* Fix lock bug in wg_peer cleanMatt Dunwoodie2019-10-021-1/+1
|
* Remove refcnt from fixedmapMatt Dunwoodie2019-10-024-96/+96
|
* BugfixesMatt Dunwoodie2019-10-023-15/+16
| | | | | | | | | | Fix a number of bugs, including: * If a transport packet arrived before the response during a handshake, it would panic with invalid state in session_promote. * p_rx_bytes/p_tx_bytes was not updated * p_lock should be exit_read, not exit_write in wg_device_tx_initiation * "want rekey" error str was not removed along with WG_REKEY
* I don't have a good commit message for thisMatt Dunwoodie2019-10-025-196/+280
| | | | | | | | | | | Changes: * Move fixedmap lock to fixedmap struct, rather than relying on d_lock. * Adjust outq to supply the ID to lookup later. This requires the caller to know the standard convention, peer id on initiation, session id otherwise. * Added fixed number session management, that is one handshake session, one current session and one old session. * Fix some ref counting
* Update DPRINTF calls to report the interface name.Matt Dunwoodie2019-10-011-6/+17
|
* Big re-work of wireguard.cMatt Dunwoodie2019-09-305-1424/+1186
|
* Add more verbose messagesMatt Dunwoodie2019-09-283-24/+22
|
* Adjust queueing processMatt Dunwoodie2019-09-273-7/+14
|