diff options
author | Colin Watson <cjwatson@debian.org> | 2011-01-24 11:46:57 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2011-01-24 11:46:57 +0000 |
commit | 0970072c89b079b022538e3c366fbfa2c53fc821 (patch) | |
tree | b7024712d74234bb5a8b036ccbc9109e2e211296 /misc.h | |
parent | 4e8aa4da57000c7bba8e5c49163bc0c0ca383f78 (diff) | |
parent | 478ff799463ca926a8dfbabf058f4e84aaffc65a (diff) |
merge 5.7p1
Diffstat (limited to 'misc.h')
-rw-r--r-- | misc.h | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -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); | |||
36 | void ms_subtract_diff(struct timeval *, int *); | 36 | void ms_subtract_diff(struct timeval *, int *); |
37 | void ms_to_timeval(struct timeval *, int); | 37 | void ms_to_timeval(struct timeval *, int); |
38 | void sock_set_v6only(int); | 38 | void sock_set_v6only(int); |
39 | int timingsafe_bcmp(const void *, const void *, size_t); | ||
40 | 39 | ||
41 | struct passwd *pwcopy(struct passwd *); | 40 | struct passwd *pwcopy(struct passwd *); |
42 | const char *ssh_gai_strerror(int); | 41 | const char *ssh_gai_strerror(int); |
@@ -80,6 +79,17 @@ void put_u32(void *, u_int32_t) | |||
80 | void put_u16(void *, u_int16_t) | 79 | void put_u16(void *, u_int16_t) |
81 | __attribute__((__bounded__( __minbytes__, 1, 2))); | 80 | __attribute__((__bounded__( __minbytes__, 1, 2))); |
82 | 81 | ||
82 | struct bwlimit { | ||
83 | size_t buflen; | ||
84 | u_int64_t rate, thresh, lamt; | ||
85 | struct timeval bwstart, bwend; | ||
86 | }; | ||
87 | |||
88 | void bandwidth_limit_init(struct bwlimit *, u_int64_t, size_t); | ||
89 | void bandwidth_limit(struct bwlimit *, size_t); | ||
90 | |||
91 | int parse_ipqos(const char *); | ||
92 | void mktemp_proto(char *, size_t); | ||
83 | 93 | ||
84 | /* readpass.c */ | 94 | /* readpass.c */ |
85 | 95 | ||