#include <stdint.h>
#include <netinet/in.h>
-#include "mech.h"
+#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) {
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;
}