aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/socket.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* global: update copyrightJason A. Donenfeld2019-01-071-1/+1
|
* global: rename struct wireguard_ to struct wg_Jason A. Donenfeld2018-10-081-8/+8
| | | | | | This required a bit of pruning of our christmas trees. Suggested-by: Jiri Pirko <jiri@resnulli.us>
* global: prefix all functions with wg_Jason A. Donenfeld2018-10-021-18/+18
| | | | | | | | | | | | | I understand why this must be done, though I'm not so happy about having to do it. In some places, it puts us over 80 chars and we have to break lines up in further ugly ways. And in general, I think this makes things harder to read. Yet another thing we must do to please upstream. Maybe this can be replaced in the future by some kind of automatic module namespacing logic in the linker, or even combined with LTO and aggressive symbol stripping. Suggested-by: Andrew Lunn <andrew@lunn.ch>
* global: put SPDX identifier on its own lineJason A. Donenfeld2018-09-201-2/+2
| | | | | The kernel has very specific rules correlating file type with comment type, and also SPDX identifiers can't be merged with other comments.
* global: run through clang-formatJason A. Donenfeld2018-08-281-12/+21
| | | | | | | This is the worst commit in the whole repo, making the code much less readable, but so it goes with upstream maintainers. We are now woefully wrapped at 80 columns.
* global: year bumpJason A. Donenfeld2018-01-031-1/+1
|
* global: add SPDX tags to all filesGreg Kroah-Hartman2017-12-091-1/+4
| | | | | | | | | | | | | It's good to have SPDX identifiers in all files as the Linux kernel developers are working to add these identifiers to all files. Update all files with the correct SPDX license identifier based on the license text of the project or based on the license in the file itself. The SPDX identifier is a legally binding shorthand, which can be used instead of the full boiler plate text. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Modified-by: Jason A. Donenfeld <Jason@zx2c4.com>
* socket: only free socket after successful creation of newJason A. Donenfeld2017-11-171-2/+2
| | | | | | | | | | | | | | When an interface is down, the socket port can change freely. A socket will be allocated when the interface comes up, and if a socket can't be allocated, the interface doesn't come up. However, a socket port can change while the interface is up. In this case, if a new socket with a new port cannot be allocated, it's important to keep the interface in a consistent state. The choices are either to bring down the interface or to preserve the old socket. This patch implements the latter. Reported-by: Marc-Antoine Perennou <keruspe@exherbo.org>
* global: get rid of useless forward declarationsJason A. Donenfeld2017-10-311-3/+0
|
* global: accept decent check_patch.pl suggestionsJason A. Donenfeld2017-10-311-1/+1
|
* socket: gcc inlining makes this fasterJason A. Donenfeld2017-10-061-0/+1
|
* socket: compare while unlocked firstJason A. Donenfeld2017-10-061-2/+2
| | | | | | This should be a bit faster. Suggested-by: Willy Tarreau <w@1wt.eu>
* global: use _WG prefix for include guardsJason A. Donenfeld2017-10-031-3/+3
| | | | Suggested-by: Sultan Alsawaf <sultanxda@gmail.com>
* socket: move print function from compatJason A. Donenfeld2017-07-281-0/+10
|
* Update copyrightJason A. Donenfeld2017-01-101-1/+1
|
* global: move to consistent use of uN instead of uintN_t for kernel codeJason A. Donenfeld2016-12-111-2/+2
|
* socket: clear src address when retrying handshakeJason A. Donenfeld2016-12-091-0/+1
|
* headers: cleanup noticesJason A. Donenfeld2016-11-211-1/+1
|
* packets: consolidate constantsJason A. Donenfeld2016-11-161-2/+0
|
* socket: keep track of src address in sending packetsJason A. Donenfeld2016-11-151-2/+3
|
* socket: use more reasonable skb paddingJason A. Donenfeld2016-11-071-1/+1
|
* socket: big refactoringJason A. Donenfeld2016-11-051-3/+3
|
* socket: use dst_cache instead of handrolled cacheJason A. Donenfeld2016-11-041-1/+0
|
* send: properly encapsulate ECNJason A. Donenfeld2016-08-291-2/+2
| | | | We're not leaking the DSCP, but we do deal with ECN.
* Initial commitJason A. Donenfeld2016-06-251-0/+25