aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/packets.h
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2016-11-04 12:42:38 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2016-11-04 12:54:26 +0100
commit8a2b7ee86336e428653436b1e79ed6c4f134ed4b (patch)
tree178db8296aeed023dd680ff4b7fab6a93ab2f471 /src/packets.h
parentdata: take reference to peer (diff)
downloadwireguard-monolithic-historical-8a2b7ee86336e428653436b1e79ed6c4f134ed4b.tar.xz
wireguard-monolithic-historical-8a2b7ee86336e428653436b1e79ed6c4f134ed4b.zip
data: use smaller types
Diffstat (limited to 'src/packets.h')
-rw-r--r--src/packets.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/packets.h b/src/packets.h
index 035c548..a8ecdf1 100644
--- a/src/packets.h
+++ b/src/packets.h
@@ -44,8 +44,8 @@ struct packet_data_encryption_ctx {
struct sk_buff *skb;
void (*callback)(struct sk_buff *, struct wireguard_peer *);
struct wireguard_peer *peer;
- size_t plaintext_len, trailer_len;
- unsigned int num_frags;
+ unsigned int plaintext_len, trailer_len;
+ uint8_t num_frags;
struct sk_buff *trailer;
struct noise_keypair *keypair;
uint64_t nonce;