Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
unique-xids
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
unique-xids
Commits
745c8287
Commit
745c8287
authored
Mar 23, 2012
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add two fields to the VSL tag definition, for documentation use.
parent
f177a357
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
43 deletions
+48
-43
vsl_tags.h
include/tbl/vsl_tags.h
+46
-41
vsl_int.h
include/vapi/vsl_int.h
+1
-1
vsl.c
lib/libvarnishapi/vsl.c
+1
-1
No files found.
include/tbl/vsl_tags.h
View file @
745c8287
...
...
@@ -34,69 +34,74 @@
*
* XXX: Please add new entries a the end to not break saved log-segments.
* XXX: we can resort them when we have a major release.
*
* Arguments:
* Tag-Name
* Short Description (1 line, max ?? chars)
* Long Description (Multi line)
*/
SLTM
(
Debug
)
SLTM
(
Error
)
SLTM
(
CLI
)
SLTM
(
StatSess
)
SLTM
(
ReqEnd
)
SLTM
(
SessionOpen
)
SLTM
(
SessionClose
)
SLTM
(
BackendOpen
)
SLTM
(
BackendXID
)
SLTM
(
BackendReuse
)
SLTM
(
BackendClose
)
SLTM
(
HttpGarbage
)
SLTM
(
Backend
)
SLTM
(
Length
)
SLTM
(
Debug
,
""
,
""
)
SLTM
(
Error
,
""
,
""
)
SLTM
(
CLI
,
""
,
""
)
SLTM
(
StatSess
,
""
,
""
)
SLTM
(
ReqEnd
,
""
,
""
)
SLTM
(
SessionOpen
,
""
,
""
)
SLTM
(
SessionClose
,
""
,
""
)
SLTM
(
BackendOpen
,
""
,
""
)
SLTM
(
BackendXID
,
""
,
""
)
SLTM
(
BackendReuse
,
""
,
""
)
SLTM
(
BackendClose
,
""
,
""
)
SLTM
(
HttpGarbage
,
""
,
""
)
SLTM
(
Backend
,
""
,
""
)
SLTM
(
Length
,
""
,
""
)
SLTM
(
FetchError
)
SLTM
(
FetchError
,
""
,
""
)
#define SLTH(aa, bb) SLTM(Req##aa)
#define SLTH(aa, bb) SLTM(Req##aa
, "", ""
)
#include "tbl/vsl_tags_http.h"
#undef SLTH
#define SLTH(aa, bb) SLTM(Resp##aa)
#define SLTH(aa, bb) SLTM(Resp##aa
, "", ""
)
#include "tbl/vsl_tags_http.h"
#undef SLTH
#define SLTH(aa, bb) SLTM(Bereq##aa)
#define SLTH(aa, bb) SLTM(Bereq##aa
, "", ""
)
#include "tbl/vsl_tags_http.h"
#undef SLTH
#define SLTH(aa, bb) SLTM(Beresp##aa)
#define SLTH(aa, bb) SLTM(Beresp##aa
, "", ""
)
#include "tbl/vsl_tags_http.h"
#undef SLTH
#define SLTH(aa, bb) SLTM(Obj##aa)
#define SLTH(aa, bb) SLTM(Obj##aa
, "", ""
)
#include "tbl/vsl_tags_http.h"
#undef SLTH
SLTM
(
LostHeader
)
SLTM
(
LostHeader
,
""
,
""
)
SLTM
(
TTL
)
SLTM
(
Fetch_Body
)
SLTM
(
VCL_acl
)
SLTM
(
VCL_call
)
SLTM
(
VCL_trace
)
SLTM
(
VCL_return
)
SLTM
(
VCL_error
)
SLTM
(
ReqStart
)
SLTM
(
Hit
)
SLTM
(
HitPass
)
SLTM
(
ExpBan
)
SLTM
(
ExpKill
)
SLTM
(
WorkThread
)
SLTM
(
TTL
,
""
,
""
)
SLTM
(
Fetch_Body
,
""
,
""
)
SLTM
(
VCL_acl
,
""
,
""
)
SLTM
(
VCL_call
,
""
,
""
)
SLTM
(
VCL_trace
,
""
,
""
)
SLTM
(
VCL_return
,
""
,
""
)
SLTM
(
VCL_error
,
""
,
""
)
SLTM
(
ReqStart
,
""
,
""
)
SLTM
(
Hit
,
""
,
""
)
SLTM
(
HitPass
,
""
,
""
)
SLTM
(
ExpBan
,
""
,
""
)
SLTM
(
ExpKill
,
""
,
""
)
SLTM
(
WorkThread
,
""
,
""
)
SLTM
(
ESI_xmlerror
)
SLTM
(
ESI_xmlerror
,
""
,
""
)
SLTM
(
Hash
)
SLTM
(
Hash
,
""
,
""
)
SLTM
(
Backend_health
)
SLTM
(
Backend_health
,
""
,
""
)
SLTM
(
VCL_Debug
)
SLTM
(
VCL_Log
)
SLTM
(
VCL_Error
)
SLTM
(
VCL_Debug
,
""
,
""
)
SLTM
(
VCL_Log
,
""
,
""
)
SLTM
(
VCL_Error
,
""
,
""
)
SLTM
(
Gzip
)
SLTM
(
Gzip
,
""
,
""
)
include/vapi/vsl_int.h
View file @
745c8287
...
...
@@ -73,7 +73,7 @@
*/
enum
VSL_tag_e
{
SLT_Bogus
=
0
,
#define SLTM(foo) SLT_##foo,
#define SLTM(foo
,sdesc,ldesc
) SLT_##foo,
#include "tbl/vsl_tags.h"
#undef SLTM
SLT_Reserved
=
255
...
...
lib/libvarnishapi/vsl.c
View file @
745c8287
...
...
@@ -55,7 +55,7 @@
/*--------------------------------------------------------------------*/
const
char
*
VSL_tags
[
256
]
=
{
# define SLTM(foo) [SLT_##foo] = #foo,
# define SLTM(foo
,sdesc,ldesc
) [SLT_##foo] = #foo,
# include "tbl/vsl_tags.h"
# undef SLTM
};
...
...
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