summaryrefslogtreecommitdiffstatshomepage
path: root/src/receive.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2016-11-15 20:19:20 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2016-11-15 20:19:20 +0100
commit1550e9ba597946c88e3e7e3e8dcf33c13dd76e5b (patch)
treeb21cb0e2fbfeb28f294832e266bdbfa2398b1d7b /src/receive.c
parenttests: trim output (diff)
downloadwireguard-monolithic-historical-1550e9ba597946c88e3e7e3e8dcf33c13dd76e5b.tar.xz
wireguard-monolithic-historical-1550e9ba597946c88e3e7e3e8dcf33c13dd76e5b.zip
various: nits from willy
Diffstat (limited to '')
-rw-r--r--src/receive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/receive.c b/src/receive.c
index 76a1960..0878872 100644
--- a/src/receive.c
+++ b/src/receive.c
@@ -265,9 +265,9 @@ static void receive_data_packet(struct sk_buff *skb, struct wireguard_peer *peer
peer_put(routed_peer); /* We don't need the extra reference. */
if (unlikely(routed_peer != peer)) {
- net_dbg_skb_ratelimited("Packet has unallowed src IP (%pISc) from peer %Lu (%pISpfsc)\n", skb, peer->internal_id, &peer->endpoint.addr_storage);
++dev->stats.rx_errors;
++dev->stats.rx_frame_errors;
+ net_dbg_skb_ratelimited("Packet has unallowed src IP (%pISc) from peer %Lu (%pISpfsc)\n", skb, peer->internal_id, &peer->endpoint.addr_storage);
goto packet_processed;
}