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 | 91ff061cc5efd24fc9a6a0324f340c9c27aa8489 (patch) | |
tree | 61bd30593e54d9d74e40c0255a13b30b510adbab /src/packets.h | |
parent | 835a11c7c1abc5ad19b0972b45d28169f8965958 (diff) |
data: use smaller types
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
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; |