Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
0f80514b
Commit
0f80514b
authored
Apr 23, 2013
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move the beresp.backend.* variables to busyobj
parent
6bc1ffc3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
15 deletions
+15
-15
cache_vrt_var.c
bin/varnishd/cache/cache_vrt_var.c
+12
-12
generate.py
lib/libvcl/generate.py
+3
-3
No files found.
bin/varnishd/cache/cache_vrt_var.c
View file @
0f80514b
...
...
@@ -261,30 +261,30 @@ BEREQ_TIMEOUT(between_bytes_timeout)
/*--------------------------------------------------------------------*/
const
char
*
VRT_r_beresp_backend_name
(
const
struct
req
*
req
)
VRT_r_beresp_backend_name
(
const
struct
busyobj
*
bo
)
{
CHECK_OBJ_NOTNULL
(
req
,
REQ
_MAGIC
);
CHECK_OBJ_NOTNULL
(
req
->
busyobj
->
vbc
,
VBC_MAGIC
);
return
(
req
->
busyobj
->
vbc
->
backend
->
vcl_name
);
CHECK_OBJ_NOTNULL
(
bo
,
BUSYOBJ
_MAGIC
);
CHECK_OBJ_NOTNULL
(
bo
->
vbc
,
VBC_MAGIC
);
return
(
bo
->
vbc
->
backend
->
vcl_name
);
}
struct
sockaddr_storage
*
VRT_r_beresp_backend_ip
(
const
struct
req
*
req
)
VRT_r_beresp_backend_ip
(
const
struct
busyobj
*
bo
)
{
CHECK_OBJ_NOTNULL
(
req
,
REQ
_MAGIC
);
CHECK_OBJ_NOTNULL
(
req
->
busyobj
->
vbc
,
VBC_MAGIC
);
return
(
req
->
busyobj
->
vbc
->
addr
);
CHECK_OBJ_NOTNULL
(
bo
,
BUSYOBJ
_MAGIC
);
CHECK_OBJ_NOTNULL
(
bo
->
vbc
,
VBC_MAGIC
);
return
(
bo
->
vbc
->
addr
);
}
long
VRT_r_beresp_backend_port
(
const
struct
req
*
req
)
VRT_r_beresp_backend_port
(
const
struct
busyobj
*
bo
)
{
CHECK_OBJ_NOTNULL
(
req
,
REQ
_MAGIC
);
CHECK_OBJ_NOTNULL
(
req
->
busyobj
->
vbc
,
VBC_MAGIC
);
return
(
VTCP_port
(
req
->
busyobj
->
vbc
->
addr
));
CHECK_OBJ_NOTNULL
(
bo
,
BUSYOBJ
_MAGIC
);
CHECK_OBJ_NOTNULL
(
bo
->
vbc
,
VBC_MAGIC
);
return
(
VTCP_port
(
bo
->
vbc
->
addr
));
}
const
char
*
...
...
lib/libvcl/generate.py
View file @
0f80514b
...
...
@@ -373,19 +373,19 @@ sp_variables = (
'STRING'
,
(
'backend_response'
,),
(
),
'c
R
'
'c
B
'
),
(
'beresp.backend.ip'
,
'IP'
,
(
'backend_response'
,),
(
),
'c
R
'
'c
B
'
),
(
'beresp.backend.port'
,
'INT'
,
(
'backend_response'
,),
(
),
'c
R
'
'c
B
'
),
(
'beresp.storage'
,
'STRING'
,
...
...
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