projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Assign more suitable types and fix narrowing conversion warns.
[tinc]
/
src
/
net_socket.c
diff --git
a/src/net_socket.c
b/src/net_socket.c
index
24a9804
..
40671db
100644
(file)
--- a/
src/net_socket.c
+++ b/
src/net_socket.c
@@
-704,8
+704,8
@@
void handle_new_meta_connection(void *data, int flags) {
static sockaddr_t prev_sa;
if(!sockaddrcmp_noport(&sa, &prev_sa)) {
static sockaddr_t prev_sa;
if(!sockaddrcmp_noport(&sa, &prev_sa)) {
- static
in
t samehost_burst;
- static
in
t samehost_burst_time;
+ static
time_
t samehost_burst;
+ static
time_
t samehost_burst_time;
if(now.tv_sec - samehost_burst_time > samehost_burst) {
samehost_burst = 0;
if(now.tv_sec - samehost_burst_time > samehost_burst) {
samehost_burst = 0;
@@
-726,8
+726,8
@@
void handle_new_meta_connection(void *data, int flags) {
// Check if we get many connections from different hosts
// Check if we get many connections from different hosts
- static
in
t connection_burst;
- static
in
t connection_burst_time;
+ static
time_
t connection_burst;
+ static
time_
t connection_burst_time;
if(now.tv_sec - connection_burst_time > connection_burst) {
connection_burst = 0;
if(now.tv_sec - connection_burst_time > connection_burst) {
connection_burst = 0;