chiark
/
gitweb
/
~mdw
/
userv-utils
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New encrypting tunnel seems to work !
[userv-utils]
/
ipif
/
mech-timestamp.c
diff --git
a/ipif/mech-timestamp.c
b/ipif/mech-timestamp.c
index e250c084d89f87fe26472618c7eae06afd2feffd..226f23f830d135a204fef14f4c110c4b054e3847 100644
(file)
--- a/
ipif/mech-timestamp.c
+++ b/
ipif/mech-timestamp.c
@@
-17,7
+17,7
@@
#include "forwarder.h"
struct mechdata {
#include "forwarder.h"
struct mechdata {
-
uint32
_t max_skew, max_age;
+
time
_t max_skew, max_age;
};
static void mds_timestamp(struct mechdata **md_r) {
};
static void mds_timestamp(struct mechdata **md_r) {
@@
-56,7
+56,7
@@
static const char *mdec_timestamp(struct mechdata *md, struct buffer *buf) {
return cbuf;
}
} else if (age < 0) {
return cbuf;
}
} else if (age < 0) {
- if (md->max_skew && age
>
md->max_skew) {
+ if (md->max_skew && age
< -
md->max_skew) {
sprintf(cbuf,"too much skew (%lds)",-age);
return cbuf;
}
sprintf(cbuf,"too much skew (%lds)",-age);
return cbuf;
}