aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/socket.h
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-10-06 17:01:15 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-10-06 18:01:54 +0200
commit5101cb7615c68f7756d14fc70aca807a251f5048 (patch)
tree3b7316c95bcda002e1d3157782f9b0fbbdac3aee /src/socket.h
parentsocket: don't bother recomparing afterwards (diff)
downloadwireguard-monolithic-historical-5101cb7615c68f7756d14fc70aca807a251f5048.tar.xz
wireguard-monolithic-historical-5101cb7615c68f7756d14fc70aca807a251f5048.zip
socket: gcc inlining makes this faster
Diffstat (limited to 'src/socket.h')
-rw-r--r--src/socket.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/socket.h b/src/socket.h
index 2214a46..f579d93 100644
--- a/src/socket.h
+++ b/src/socket.h
@@ -19,6 +19,7 @@ int socket_send_buffer_as_reply_to_skb(struct wireguard_device *wg, struct sk_bu
int socket_endpoint_from_skb(struct endpoint *endpoint, const struct sk_buff *skb);
void socket_set_peer_endpoint(struct wireguard_peer *peer, const struct endpoint *endpoint);
+void socket_set_peer_endpoint_from_skb(struct wireguard_peer *peer, const struct sk_buff *skb);
void socket_clear_peer_endpoint_src(struct wireguard_peer *peer);
#if defined(CONFIG_DYNAMIC_DEBUG) || defined(DEBUG)