projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Small fixes:
[tinc]
/
src
/
net.c
diff --git
a/src/net.c
b/src/net.c
index
c3f89ca
..
68080fd
100644
(file)
--- a/
src/net.c
+++ b/
src/net.c
@@
-17,7
+17,7
@@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: net.c,v 1.35.4.10
5 2001/05/07 19:08:43
guus Exp $
+ $Id: net.c,v 1.35.4.10
6 2001/05/25 08:36:11
guus Exp $
*/
#include "config.h"
*/
#include "config.h"
@@
-848,11
+848,13
@@
cp
cfg = get_config_val(upstreamcfg, config_connectto);
if(!cfg)
cfg = get_config_val(upstreamcfg, config_connectto);
if(!cfg)
- if(upstreamcfg == config)
{
{
- /* No upstream IP given, we're listen only. */
- signal(SIGALRM, SIG_IGN);
- return;
+ if(upstreamcfg == config)
+ {
+ /* No upstream IP given, we're listen only. */
+ signal(SIGALRM, SIG_IGN);
+ return;
+ }
}
else
{
}
else
{
@@
-1075,6
+1077,8
@@
cp
return;
}
return;
}
+ cl->last_ping_time = time(NULL);
+
receive_udppacket(cl, &pkt);
cp
}
receive_udppacket(cl, &pkt);
cp
}