X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fnet.h;h=3dfc3a56d3814010c90105bd077bec60844df6b3;hp=8e067475f2c09e44eff3f138e944522a10202c6f;hb=e20e143f1e99bdc0a7d92e97da1bd0dc40e8a83b;hpb=ee96ccabbbf0180d5631d3c22838456f28ee9c15 diff --git a/src/net.h b/src/net.h index 8e067475..3dfc3a56 100644 --- a/src/net.h +++ b/src/net.h @@ -115,6 +115,8 @@ typedef struct conn_list_t { char buffer[MAXBUFSIZE+1]; /* metadata input buffer */ int buflen; /* bytes read into buffer */ int reqlen; /* length of first request in buffer */ + time_t last_ping_time; /* last time we saw some activity from the other end */ + int want_ping; /* 0 if there's no need to check for activity */ struct conn_list_t *nexthop; /* nearest meta-hop in this direction */ struct conn_list_t *next; /* after all, it's a list of connections */ } conn_list_t;