Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dcs_classifier
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
dcs_classifier
Commits
7ca2f406
Commit
7ca2f406
authored
Jun 04, 2015
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
whitespace
parent
5602713f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
dcs02_excessive_ua_length.vtc
check/tests/dcs02_excessive_ua_length.vtc
+3
-4
configure.ac
configure.ac
+10
-9
No files found.
check/tests/dcs02_excessive_ua_length.vtc
View file @
7ca2f406
...
...
@@ -7,16 +7,16 @@ server s1 {
txresp
} -start
varnish v1 -vcl+backend {
varnish v1 -vcl+backend {
import dcs from "${vmod_topbuild}/src/.libs/libvmod_dcs.so";
sub vcl_recv {
# this code will classify
# this code will classify
#
# for best performance in production, only call classify
# once or use inline-C to save the return value of
# classify (int)
# exotic use cases
set req.http.xx-entry-key = dcs.entry_key(dcs.classify());
set req.http.xx-type-id = dcs.type_id(dcs.classify());
...
...
@@ -52,4 +52,3 @@ client c1 {
expect resp.http.x-nb-classified == "Mobile Phone"
expect resp.http.X-DeviceClass == "smartphone"
} -run
configure.ac
View file @
7ca2f406
...
...
@@ -118,7 +118,8 @@ if test "x$VARNISHSRC" = x; then
AM_CONDITIONAL([BUILD_VMOD], [true])
AC_SUBST([VCCFILE], [vmod_dcs4.vcc])
AC_DEFINE([VARNISH_MAJOR], [4], [Define the Varnish major version we compile against])
AC_DEFINE([VARNISH_MAJOR], [4],
[Define the Varnish major version we compile against])
AC_SUBST([TESTDIR], [tests4])
else
AM_CONDITIONAL([HAVE_VARNISH_M4], [false])
...
...
@@ -263,20 +264,20 @@ DEVELOPER_CLANG_CFLAGS="-Wmissing-variable-declarations -Wno-string-plus-int"
# --enable-developer-warnings
AC_ARG_ENABLE(developer-warnings,
AS_HELP_STRING([--enable-developer-warnings],[enable strict warnings (default is NO)]),
[],
[enable_developer_warnings=no])
AS_HELP_STRING([--enable-developer-warnings],[enable strict warnings (default is NO)]),
[],
[enable_developer_warnings=no])
#DEVELOPER_CFLAGS="${DEVELOPER_CFLAGS} ${DEVELOPER_CLANG_CFLAGS}"
if test "x$enable_developer_warnings" != "xno"; then
CFLAGS="${CFLAGS} ${DEVELOPER_CFLAGS}"
OCFLAGS="${OCFLAGS} ${DEVELOPER_CFLAGS}"
CFLAGS="${CFLAGS} ${DEVELOPER_CFLAGS}"
OCFLAGS="${OCFLAGS} ${DEVELOPER_CFLAGS}"
fi
# --enable-debugging-symbols
AC_ARG_ENABLE(debugging-symbols,
AS_HELP_STRING([--enable-debugging-symbols],[enable debugging symbols (default is NO)]),
CFLAGS="${CFLAGS} -O0 -g -fno-inline")
AS_HELP_STRING([--enable-debugging-symbols],[enable debugging symbols (default is NO)]),
CFLAGS="${CFLAGS} -O0 -g -fno-inline")
AC_SUBST(AM_LT_LDFLAGS)
...
...
@@ -284,7 +285,7 @@ AC_SUBST(AM_LT_LDFLAGS)
## VARNISH whether to install Varnish inline-c sources
AC_ARG_ENABLE(varnish2,
AS_HELP_STRING([--enable-varnish2],[install code for varnish2 inline-C (default is NO)]))
AS_HELP_STRING([--enable-varnish2],[install code for varnish2 inline-C (default is NO)]))
AM_CONDITIONAL([INSTALL_VARNISH2], [test "x$enable_varnish2" != x])
############################################################
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment