Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-ece
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
libvmod-ece
Commits
19c7cb4a
Commit
19c7cb4a
authored
Sep 19, 2019
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Just use vfp_entry->bytes_out for the out counters. So much easier.
Also remove some superfluous code.
parent
33eca69a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
18 deletions
+6
-18
vfp_common.c
src/vfp_common.c
+6
-0
vfp_common.h
src/vfp_common.h
+0
-7
vfp_decrypt.c
src/vfp_decrypt.c
+0
-5
vfp_encrypt.c
src/vfp_encrypt.c
+0
-6
No files found.
src/vfp_common.c
View file @
19c7cb4a
...
...
@@ -159,9 +159,15 @@ void v_matchproto_(vfp_fini_f)
vfp_common_fini
(
struct
vfp_ctx
*
ctx
,
struct
vfp_entry
*
ent
)
{
struct
ece
*
ece
;
const
struct
vfp_cfg
*
cfg
;
CHECK_OBJ_NOTNULL
(
ctx
,
VFP_CTX_MAGIC
);
CHECK_OBJ_NOTNULL
(
ent
,
VFP_ENTRY_MAGIC
);
AN
(
ent
->
vfp
);
CAST_OBJ_NOTNULL
(
cfg
,
ent
->
vfp
->
priv1
,
VFP_CFG_MAGIC
);
if
(
cfg
->
stats
!=
NULL
)
cfg
->
stats
->
out
+=
ent
->
bytes_out
;
if
(
ent
->
priv1
==
NULL
)
return
;
...
...
src/vfp_common.h
View file @
19c7cb4a
...
...
@@ -200,13 +200,6 @@ hdrBufIn(struct ece_hdrbuf *hdr)
return
(
hdr
->
next_in
);
}
static
inline
uint8_t
*
recBufIn
(
struct
ece_stream
*
stream
)
{
CHECK_OBJ_NOTNULL
(
stream
,
ECE_STREAM_MAGIC
);
return
(
stream
->
rec_next
);
}
static
inline
uint8_t
*
streamIn
(
struct
ece_stream
*
stream
)
{
...
...
src/vfp_decrypt.c
View file @
19c7cb4a
...
...
@@ -331,12 +331,9 @@ vfp_decrypt_pull(struct vfp_ctx *ctx, struct vfp_entry *ent, void *ptr,
AN
(
ece
->
buf
);
setOutputBuf
(
stream
,
ptr
,
*
lenp
);
inb4
=
recBufIn
(
stream
);
flushRecBuf
(
stream
);
if
(
isOutputBufFull
(
stream
))
{
*
lenp
=
outputLen
(
stream
,
p
);
if
(
stats
!=
NULL
)
stats
->
out
+=
*
lenp
;
return
(
VFP_OK
);
}
...
...
@@ -359,8 +356,6 @@ vfp_decrypt_pull(struct vfp_ctx *ctx, struct vfp_entry *ent, void *ptr,
ERR
(
ctx
,
"message truncated"
);
*
lenp
=
outputLen
(
stream
,
p
);
if
(
stats
!=
NULL
)
stats
->
out
+=
*
lenp
;
return
(
vp
);
}
...
...
src/vfp_encrypt.c
View file @
19c7cb4a
...
...
@@ -233,8 +233,6 @@ vfp_encrypt_pull(struct vfp_ctx *ctx, struct vfp_entry *ent, void *ptr,
flushHdrBuf
(
stream
,
hdrbuf
);
if
(
isOutputBufFull
(
stream
))
{
*
lenp
=
outputLen
(
stream
,
p
);
if
(
stats
!=
NULL
)
stats
->
out
+=
*
lenp
;
return
(
VFP_OK
);
}
}
...
...
@@ -267,8 +265,6 @@ vfp_encrypt_pull(struct vfp_ctx *ctx, struct vfp_entry *ent, void *ptr,
if
(
encrypt_status
==
VFP_NULL
)
{
/* Output record was buffered */
*
lenp
=
outputLen
(
stream
,
p
);
if
(
stats
!=
NULL
)
stats
->
out
+=
*
lenp
;
return
(
VFP_OK
);
}
}
...
...
@@ -277,8 +273,6 @@ vfp_encrypt_pull(struct vfp_ctx *ctx, struct vfp_entry *ent, void *ptr,
}
*
lenp
=
outputLen
(
stream
,
p
);
if
(
stats
!=
NULL
)
stats
->
out
+=
*
lenp
;
return
(
vp
);
}
...
...
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