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
5a1b7707
Commit
5a1b7707
authored
Mar 23, 2012
by
Tollef Fog Heen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust varnishncsa and varnishreplay for the new tag names
parent
e37585df
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
18 deletions
+18
-18
varnishncsa.c
bin/varnishncsa/varnishncsa.c
+14
-14
varnishreplay.c
bin/varnishreplay/varnishreplay.c
+4
-4
No files found.
bin/varnishncsa/varnishncsa.c
View file @
5a1b7707
...
...
@@ -293,7 +293,7 @@ collect_backend(struct logline *lp, enum VSL_tag_e tag, unsigned spec,
lp
->
df_h
=
trimfield
(
ptr
,
end
);
break
;
case
SLT_
Tx
Request
:
case
SLT_
Bereq
Request
:
if
(
!
lp
->
active
)
break
;
if
(
lp
->
df_m
!=
NULL
)
{
...
...
@@ -303,7 +303,7 @@ collect_backend(struct logline *lp, enum VSL_tag_e tag, unsigned spec,
lp
->
df_m
=
trimline
(
ptr
,
end
);
break
;
case
SLT_
Tx
URL
:
{
case
SLT_
Bereq
URL
:
{
char
*
qs
;
if
(
!
lp
->
active
)
...
...
@@ -322,7 +322,7 @@ collect_backend(struct logline *lp, enum VSL_tag_e tag, unsigned spec,
break
;
}
case
SLT_
Tx
Protocol
:
case
SLT_
Bereq
Protocol
:
if
(
!
lp
->
active
)
break
;
if
(
lp
->
df_H
!=
NULL
)
{
...
...
@@ -332,7 +332,7 @@ collect_backend(struct logline *lp, enum VSL_tag_e tag, unsigned spec,
lp
->
df_H
=
trimline
(
ptr
,
end
);
break
;
case
SLT_
Rx
Status
:
case
SLT_
Beresp
Status
:
if
(
!
lp
->
active
)
break
;
if
(
lp
->
df_s
!=
NULL
)
{
...
...
@@ -342,7 +342,7 @@ collect_backend(struct logline *lp, enum VSL_tag_e tag, unsigned spec,
lp
->
df_s
=
trimline
(
ptr
,
end
);
break
;
case
SLT_
Rx
Header
:
case
SLT_
Beresp
Header
:
if
(
!
lp
->
active
)
break
;
if
(
isprefix
(
ptr
,
"content-length:"
,
end
,
&
next
))
...
...
@@ -353,7 +353,7 @@ collect_backend(struct logline *lp, enum VSL_tag_e tag, unsigned spec,
}
break
;
case
SLT_
Tx
Header
:
case
SLT_
Bereq
Header
:
if
(
!
lp
->
active
)
break
;
split
=
strchr
(
ptr
,
':'
);
...
...
@@ -412,7 +412,7 @@ collect_client(struct logline *lp, enum VSL_tag_e tag, unsigned spec,
lp
->
df_h
=
trimfield
(
ptr
,
end
);
break
;
case
SLT_R
x
Request
:
case
SLT_R
eq
Request
:
if
(
!
lp
->
active
)
break
;
if
(
lp
->
df_m
!=
NULL
)
{
...
...
@@ -422,7 +422,7 @@ collect_client(struct logline *lp, enum VSL_tag_e tag, unsigned spec,
lp
->
df_m
=
trimline
(
ptr
,
end
);
break
;
case
SLT_R
x
URL
:
{
case
SLT_R
eq
URL
:
{
char
*
qs
;
if
(
!
lp
->
active
)
...
...
@@ -441,7 +441,7 @@ collect_client(struct logline *lp, enum VSL_tag_e tag, unsigned spec,
break
;
}
case
SLT_R
x
Protocol
:
case
SLT_R
eq
Protocol
:
if
(
!
lp
->
active
)
break
;
if
(
lp
->
df_H
!=
NULL
)
{
...
...
@@ -451,7 +451,7 @@ collect_client(struct logline *lp, enum VSL_tag_e tag, unsigned spec,
lp
->
df_H
=
trimline
(
ptr
,
end
);
break
;
case
SLT_
Tx
Status
:
case
SLT_
Obj
Status
:
if
(
!
lp
->
active
)
break
;
if
(
lp
->
df_s
!=
NULL
)
...
...
@@ -460,14 +460,14 @@ collect_client(struct logline *lp, enum VSL_tag_e tag, unsigned spec,
lp
->
df_s
=
trimline
(
ptr
,
end
);
break
;
case
SLT_
Tx
Header
:
case
SLT_R
x
Header
:
case
SLT_
Obj
Header
:
case
SLT_R
eq
Header
:
if
(
!
lp
->
active
)
break
;
split
=
strchr
(
ptr
,
':'
);
if
(
split
==
NULL
)
break
;
if
(
tag
==
SLT_R
x
Header
&&
if
(
tag
==
SLT_R
eq
Header
&&
isprefix
(
ptr
,
"authorization:"
,
end
,
&
next
)
&&
isprefix
(
next
,
"basic"
,
end
,
&
next
))
{
free
(
lp
->
df_u
);
...
...
@@ -479,7 +479,7 @@ collect_client(struct logline *lp, enum VSL_tag_e tag, unsigned spec,
AN
(
split
);
h
->
key
=
trimline
(
ptr
,
split
);
h
->
value
=
trimline
(
split
+
1
,
end
);
if
(
tag
==
SLT_R
x
Header
)
if
(
tag
==
SLT_R
eq
Header
)
VTAILQ_INSERT_HEAD
(
&
lp
->
req_headers
,
h
,
list
);
else
VTAILQ_INSERT_HEAD
(
&
lp
->
resp_headers
,
h
,
list
);
...
...
bin/varnishreplay/varnishreplay.c
View file @
5a1b7707
...
...
@@ -515,28 +515,28 @@ replay_thread(void *arg)
thread_log
(
2
,
0
,
"%s(%s)"
,
VSL_tags
[
tag
],
msg
->
ptr
);
switch
(
tag
)
{
case
SLT_R
x
Request
:
case
SLT_R
eq
Request
:
if
(
thr
->
method
!=
NULL
)
thr
->
bogus
=
1
;
else
thr
->
method
=
trimline
(
thr
,
ptr
);
break
;
case
SLT_R
x
URL
:
case
SLT_R
eq
URL
:
if
(
thr
->
url
!=
NULL
)
thr
->
bogus
=
1
;
else
thr
->
url
=
trimline
(
thr
,
ptr
);
break
;
case
SLT_R
x
Protocol
:
case
SLT_R
eq
Protocol
:
if
(
thr
->
proto
!=
NULL
)
thr
->
bogus
=
1
;
else
thr
->
proto
=
trimline
(
thr
,
ptr
);
break
;
case
SLT_R
x
Header
:
case
SLT_R
eq
Header
:
if
(
thr
->
nhdr
>=
sizeof
thr
->
hdr
/
sizeof
*
thr
->
hdr
)
{
thr
->
bogus
=
1
;
}
else
{
...
...
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