summaryrefslogtreecommitdiffhomepage
path: root/src/receive.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-06-30 17:12:06 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2020-06-30 17:17:05 -0600
commitf4367ebaef9244fc777875be2c765cc03a1b5b72 (patch)
tree7a016e8585275d761e849b812fb6be5e53eb2aab /src/receive.c
parent6af810721785ecae09a50ebf28d4c8234f67b163 (diff)
queueing: make use of ip_tunnel_parse_protocol
Now that wg_examine_packet_protocol has been added for general consumption as ip_tunnel_parse_protocol, it's possible to remove wg_examine_packet_protocol and simply use the new ip_tunnel_parse_protocol function directly. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/receive.c')
-rw-r--r--src/receive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/receive.c b/src/receive.c
index 4f7141a..172ef82 100644
--- a/src/receive.c
+++ b/src/receive.c
@@ -392,7 +392,7 @@ static void wg_packet_consume_data_done(struct wg_peer *peer,
#ifndef COMPAT_CANNOT_USE_CSUM_LEVEL
skb->csum_level = ~0; /* All levels */
#endif
- skb->protocol = wg_examine_packet_protocol(skb);
+ skb->protocol = ip_tunnel_parse_protocol(skb);
if (skb->protocol == htons(ETH_P_IP)) {
len = ntohs(ip_hdr(skb)->tot_len);
if (unlikely(len < sizeof(struct iphdr)))