aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/send.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2016-11-11 20:07:16 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2016-11-15 02:42:36 +0100
commit03257af8c9e08a99650c96144cd3b92653ca4e04 (patch)
tree6e53d19924854f5219a2758defc0e026489ffe04 /src/send.c
parentsocket: keep track of src address in sending packets (diff)
downloadwireguard-monolithic-historical-03257af8c9e08a99650c96144cd3b92653ca4e04.tar.xz
wireguard-monolithic-historical-03257af8c9e08a99650c96144cd3b92653ca4e04.zip
debug: cleanup skb printing
Diffstat (limited to 'src/send.c')
-rw-r--r--src/send.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/send.c b/src/send.c
index 78119f0..24c104b 100644
--- a/src/send.c
+++ b/src/send.c
@@ -81,11 +81,7 @@ void packet_send_handshake_cookie(struct wireguard_device *wg, struct sk_buff *i
{
struct message_handshake_cookie packet;
-#if defined(CONFIG_DYNAMIC_DEBUG) || defined(DEBUG)
- struct endpoint endpoint;
- socket_endpoint_from_skb(&endpoint, initiating_skb);
- net_dbg_ratelimited("Sending cookie response for denied handshake message for %pISpfsc\n", &endpoint.addr_storage);
-#endif
+ net_dbg_skb_ratelimited("Sending cookie response for denied handshake message for %pISpfsc\n", initiating_skb);
cookie_message_create(&packet, initiating_skb, data, data_len, sender_index, &wg->cookie_checker);
socket_send_buffer_as_reply_to_skb(wg, initiating_skb, &packet, sizeof(packet));
}