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
9f7a44f1
Commit
9f7a44f1
authored
Feb 24, 2016
by
Federico G. Schwindt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
parent
038557a7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
vmod.rst
doc/sphinx/reference/vmod.rst
+5
-5
vrt.h
include/vrt.h
+2
-2
vcc_acl.c
lib/libvcc/vcc_acl.c
+4
-4
No files found.
doc/sphinx/reference/vmod.rst
View file @
9f7a44f1
...
...
@@ -118,7 +118,7 @@ etc.
ACL
C-type: ``const struct vrt_acl *``
A type for named ACLs declared in VCL.
A type for named ACLs declared in VCL.
BACKEND
C-type: ``const struct director *``
...
...
@@ -152,9 +152,9 @@ DURATION
A time interval, as in 25 seconds.
ENUM
C-type: ``const char *``
C-type: ``const char *``
TODO
TODO
HEADER
C-type: ``const struct gethdr_s *``
...
...
@@ -169,9 +169,9 @@ HEADER
the value, but not where it came from.
HTTP
C-type: ``struct http *``
C-type: ``struct http *``
TODO
TODO
INT
C-type: ``long``
...
...
include/vrt.h
View file @
9f7a44f1
...
...
@@ -242,12 +242,12 @@ struct vrt_ref {
/* ACL related */
#define VRT_ACL_MAXADDR 16
/* max(IPv4, IPv6) */
typedef
int
acl_
f
(
VRT_CTX
,
VCL_IP
);
typedef
int
acl_
match_f
(
VRT_CTX
,
const
VCL_IP
);
struct
vrt_acl
{
unsigned
magic
;
#define VRT_ACL_MAGIC 0x78329d96
acl_
f
*
match
;
acl_
match_f
*
match
;
};
void
VRT_acl_log
(
VRT_CTX
,
const
char
*
msg
);
...
...
lib/libvcc/vcc_acl.c
View file @
9f7a44f1
...
...
@@ -351,7 +351,7 @@ vcc_acl_emit(struct vcc *tl, const char *acln, int anon)
struct
token
*
t
;
struct
inifin
*
ifp
;
Fh
(
tl
,
0
,
"
\n
static int __match_proto__(acl_f)
\n
"
);
Fh
(
tl
,
0
,
"
\n
static int __match_proto__(acl_
match_
f)
\n
"
);
Fh
(
tl
,
0
,
"match_acl_%s_%s(VRT_CTX, const VCL_IP p)
\n
"
,
anon
?
"anon"
:
"named"
,
acln
);
...
...
@@ -364,7 +364,7 @@ vcc_acl_emit(struct vcc *tl, const char *acln, int anon)
Fh
(
tl
,
0
,
"
\t\t
VRT_acl_log(ctx,
\"
NO_FAM %s
\"
);
\n
"
,
acln
);
Fh
(
tl
,
0
,
"
\t\t
return(0);
\n
"
);
Fh
(
tl
,
0
,
"
\t
}
\n\n
"
);
if
(
!
tl
->
param
->
err_unref
&&
!
anon
)
{
if
(
!
tl
->
param
->
err_unref
&&
!
anon
)
{
ifp
=
New_IniFin
(
tl
);
VSB_printf
(
ifp
->
ini
,
"
\t
if (0) match_acl_named_%s(0, 0);
\n
"
,
acln
);
...
...
@@ -419,9 +419,9 @@ vcc_acl_emit(struct vcc *tl, const char *acln, int anon)
t
=
ae
->
t_addr
;
do
{
if
(
t
->
tok
==
CSTR
)
{
Fh
(
tl
,
0
,
"
\"\\\"\"
"
);
Fh
(
tl
,
0
,
"
\"\\\"\"
"
);
EncToken
(
tl
->
fh
,
t
);
Fh
(
tl
,
0
,
"
\"\\\"\"
"
);
Fh
(
tl
,
0
,
"
\"\\\"\"
"
);
}
else
Fh
(
tl
,
0
,
"
\"
%.*s
\"
"
,
PF
(
t
));
if
(
t
==
ae
->
t_mask
)
...
...
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