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
2459de45
Commit
2459de45
authored
Jun 26, 2023
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
s/this/that/ to not stomp on C++ reserved words.
parent
baf60b4d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
vmod_debug_acl.c
vmod/vmod_debug_acl.c
+6
-6
No files found.
vmod/vmod_debug_acl.c
View file @
2459de45
...
...
@@ -85,14 +85,14 @@ struct acl_sweep {
uint8_t
*
probe_p
;
VCL_INT
step
;
uint64_t
reset
;
uint64_t
th
is
;
uint64_t
th
at
;
uint64_t
count
;
};
static
void
reset_sweep
(
struct
acl_sweep
*
asw
)
{
asw
->
th
is
=
asw
->
reset
;
asw
->
th
at
=
asw
->
reset
;
}
static
int
...
...
@@ -129,7 +129,7 @@ setup_sweep(VRT_CTX, struct acl_sweep *asw, VCL_IP ip0, VCL_IP ip1,
}
asw
->
reset
=
vbe64dec
(
asw
->
ip0_p
+
8
);
}
asw
->
th
is
=
asw
->
reset
;
asw
->
th
at
=
asw
->
reset
;
/* Dont try this at home */
asw
->
probe
=
malloc
(
vsa_suckaddr_len
);
...
...
@@ -156,12 +156,12 @@ step_sweep(struct acl_sweep *asw)
AN
(
asw
);
asw
->
count
++
;
asw
->
th
is
+=
asw
->
step
;
asw
->
th
at
+=
asw
->
step
;
if
(
asw
->
family
==
PF_INET
)
{
vbe32enc
(
asw
->
probe_p
,
asw
->
th
is
);
vbe32enc
(
asw
->
probe_p
,
asw
->
th
at
);
return
(
memcmp
(
asw
->
probe_p
,
asw
->
ip1_p
,
4
));
}
else
{
vbe64enc
(
asw
->
probe_p
+
8
,
asw
->
th
is
);
vbe64enc
(
asw
->
probe_p
+
8
,
asw
->
th
at
);
return
(
memcmp
(
asw
->
probe_p
,
asw
->
ip1_p
,
16
));
}
}
...
...
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