diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-11-04 12:42:38 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-11-04 12:54:26 +0100 |
commit | 8a2b7ee86336e428653436b1e79ed6c4f134ed4b (patch) | |
tree | 178db8296aeed023dd680ff4b7fab6a93ab2f471 /src/packets.h | |
parent | data: take reference to peer (diff) | |
download | wireguard-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.h | 4 |
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; |