summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--NEWS9
-rw-r--r--README5
m---------acvmod0
-rw-r--r--configure.ac8
-rw-r--r--src/tbf.h19
-rw-r--r--src/vmod-tbf.38
6 files changed, 31 insertions, 18 deletions
diff --git a/NEWS b/NEWS
index 980e243..1ce185f 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,2 @@
-vmod-tbf -- history of user-visible changes. 2017-08-10
-Copyright (C) 2013-2017 Sergey Poznyakoff
+vmod-tbf -- history of user-visible changes. 2018-12-10
See the end of file for copying conditions.
@@ -6,2 +5,6 @@ Please send vmod-tbf bug reports to <gray@gnu.org>
+Version 2.3, 2018-12-10
+
+* Support for Varnish 6.0.2
+
Version 2.2, 2017-08-10
@@ -35,3 +38,3 @@ Copyright information:
-Copyright (C) 2013-2017 Sergey Poznyakoff
+Copyright (C) 2013-2018 Sergey Poznyakoff
diff --git a/README b/README
index 961edb9..b862c1b 100644
--- a/README
+++ b/README
@@ -1,3 +1,2 @@
Vmod-tbf README
-Copyright (C) 2013-2017 Sergey Poznyakoff
See the end of file for copying conditions.
@@ -34,2 +33,4 @@ UNIX timestamps in human-readable form, etc.
+The module works with Varnish versions from 4.1 to 6.0.2.
+
* Installation
@@ -81,3 +82,3 @@ Send bug reports and suggestions to <gray@gnu.org>
-Copyright (C) 2013-2017 Sergey Poznyakoff
+Copyright (C) 2013-2018 Sergey Poznyakoff
diff --git a/acvmod b/acvmod
-Subproject 5f6dce2f7dd35a154333bb42d134a018b981f81
+Subproject 5b214e3d72f9e261a37cf31deb41e7f8a61a181
diff --git a/configure.ac b/configure.ac
index f42e2ef..64edcee 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,3 +1,3 @@
# This file is part of vmod-tbf -*- autoconf -*-
-# Copyright (C) 2013-2017 Sergey Poznyakoff
+# Copyright (C) 2013-2018 Sergey Poznyakoff
#
@@ -16,3 +16,3 @@
AC_PREREQ(2.69)
-AC_INIT([vmod-tbf], 2.2, [gray@gnu.org])
+AC_INIT([vmod-tbf], 2.3, [gray@gnu.org])
AC_CONFIG_AUX_DIR([build-aux])
@@ -48,3 +48,5 @@ AC_CHECK_FUNCS(sysinfo getloadavg)
-AM_VARNISHAPI([4.1],[5.1])
+AM_VARNISHAPI([4.1],[6.0.2])
+AC_DEFINE_UNQUOTED([VARNISHAPI_MAJOR],[$VARNISHAPI_MAJOR],
+ [Varnish API major version number])
diff --git a/src/tbf.h b/src/tbf.h
index 06af4c7..a138eeb 100644
--- a/src/tbf.h
+++ b/src/tbf.h
@@ -1,3 +1,3 @@
/* This file is part of vmod-tbf
- Copyright (C) 2013-2017 Sergey Poznyakoff
+ Copyright (C) 2013-2018 Sergey Poznyakoff
@@ -25,9 +25,16 @@
#include <errno.h>
-#include <vcl.h>
-#include <vrt.h>
-#include "vcc_if.h"
+#include <string.h>
+#include <unistd.h>
#include "vsha256.h"
#include "pthread.h"
-
-#include "cache/cache.h"
+#if VARNISHAPI_MAJOR > 5
+# include <cache/cache.h>
+# include <vcl.h>
+# include <vcc_if.h>
+#else
+# include <vcl.h>
+# include <vrt.h>
+# include <vcc_if.h>
+# include <cache/cache.h>
+#endif
#define WSPTR(s) ((s)->ws)
diff --git a/src/vmod-tbf.3 b/src/vmod-tbf.3
index 626341c..666cc38 100644
--- a/src/vmod-tbf.3
+++ b/src/vmod-tbf.3
@@ -1,3 +1,3 @@
.\" This file is part of Vmod-tbf -*- nroff -*-
-.\" Copyright (C) 2013-2014 Sergey Poznyakoff
+.\" Copyright (C) 2013-2018 Sergey Poznyakoff
.\"
@@ -15,3 +15,3 @@
.\" along with vmod-tbf. If not, see <http://www.gnu.org/licenses/>.
-.TH VMOD-TBF 1 "February 8, 2016" "VMOD-TBF" "User Reference"
+.TH VMOD-TBF 3 "December 10, 2018" "VMOD-TBF" "User Reference"
.SH NAME
@@ -212,3 +212,3 @@ Suspends execution for a specified amount of time.
. ds package vmod-tbf
-. ds version 2.0
+. ds version 2.3
. so download.inc
@@ -223,3 +223,3 @@ Report bugs to <gray@gnu.org>.
.SH COPYRIGHT
-Copyright \(co 2013-2014 Sergey Poznyakoff
+Copyright \(co 2013-2018 Sergey Poznyakoff
.br

Return to:

Send suggestions and report system problems to the System administrator.