diff options
author | 2009-01-31 11:44:49 +0000 | |
---|---|---|
committer | 2009-01-31 11:44:49 +0000 | |
commit | 9627de93c428df492d43053513ef7749aad5b473 (patch) | |
tree | 1b9d8074a0794e9287c96a0576bef8c9f77cae8f /lib/libc | |
parent | Pass the buffer to send_packet() instead of spliting it up. This removes (diff) | |
download | wireguard-openbsd-9627de93c428df492d43053513ef7749aad5b473.tar.xz wireguard-openbsd-9627de93c428df492d43053513ef7749aad5b473.zip |
Implement buf_left() to make some some more buffer handling easier.
buf_left() returns the bytes left in a buffer. This makes the check to
keep MD5_DIGEST_LENGTH bytes unallocated in some messages easier.
From the buf cleanup diff that was OK norby@ and henning@
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions