summaryrefslogtreecommitdiff
path: root/misc.h
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2011-01-24 11:46:57 +0000
committerColin Watson <cjwatson@debian.org>2011-01-24 11:46:57 +0000
commit0970072c89b079b022538e3c366fbfa2c53fc821 (patch)
treeb7024712d74234bb5a8b036ccbc9109e2e211296 /misc.h
parent4e8aa4da57000c7bba8e5c49163bc0c0ca383f78 (diff)
parent478ff799463ca926a8dfbabf058f4e84aaffc65a (diff)
merge 5.7p1
Diffstat (limited to 'misc.h')
-rw-r--r--misc.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/misc.h b/misc.h
index bb799f616..65cf4a616 100644
--- a/misc.h
+++ b/misc.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: misc.h,v 1.43 2010/07/13 23:13:16 djm Exp $ */ 1/* $OpenBSD: misc.h,v 1.47 2010/11/21 01:01:13 djm Exp $ */
2 2
3/* 3/*
4 * Author: Tatu Ylonen <ylo@cs.hut.fi> 4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -36,7 +36,6 @@ void sanitise_stdfd(void);
36void ms_subtract_diff(struct timeval *, int *); 36void ms_subtract_diff(struct timeval *, int *);
37void ms_to_timeval(struct timeval *, int); 37void ms_to_timeval(struct timeval *, int);
38void sock_set_v6only(int); 38void sock_set_v6only(int);
39int timingsafe_bcmp(const void *, const void *, size_t);
40 39
41struct passwd *pwcopy(struct passwd *); 40struct passwd *pwcopy(struct passwd *);
42const char *ssh_gai_strerror(int); 41const char *ssh_gai_strerror(int);
@@ -80,6 +79,17 @@ void put_u32(void *, u_int32_t)
80void put_u16(void *, u_int16_t) 79void put_u16(void *, u_int16_t)
81 __attribute__((__bounded__( __minbytes__, 1, 2))); 80 __attribute__((__bounded__( __minbytes__, 1, 2)));
82 81
82struct bwlimit {
83 size_t buflen;
84 u_int64_t rate, thresh, lamt;
85 struct timeval bwstart, bwend;
86};
87
88void bandwidth_limit_init(struct bwlimit *, u_int64_t, size_t);
89void bandwidth_limit(struct bwlimit *, size_t);
90
91int parse_ipqos(const char *);
92void mktemp_proto(char *, size_t);
83 93
84/* readpass.c */ 94/* readpass.c */
85 95