From 44ca60ecdba866160bebbc6c1eb983674819d429 Mon Sep 17 00:00:00 2001 From: Benoît Ganne Date: Fri, 6 Sep 2019 13:43:16 +0200 Subject: gbp: fix contract rule handling MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix a memory leak when removing old GBP contract rules and make sure a GBP contract rule exists when matching the corresponding ACL rule. Type: fix Fixes: 13a08cc098 Change-Id: Iba67d573e69280ad998488a7a3d3462341c68ea4 Signed-off-by: Benoît Ganne --- src/plugins/gbp/gbp_policy.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/plugins/gbp/gbp_policy.c') diff --git a/src/plugins/gbp/gbp_policy.c b/src/plugins/gbp/gbp_policy.c index 21e4bdba064..127c6d3f059 100644 --- a/src/plugins/gbp/gbp_policy.c +++ b/src/plugins/gbp/gbp_policy.c @@ -28,9 +28,11 @@ format_gbp_policy_trace (u8 * s, va_list * args) gbp_policy_trace_t *t = va_arg (*args, gbp_policy_trace_t *); s = - format (s, "scope:%d sclass:%d, dclass:%d, allowed:%d flags:%U", t->scope, - t->sclass, t->dclass, t->allowed, format_vxlan_gbp_header_gpflags, - t->flags); + format (s, + "scope:%d sclass:%d, dclass:%d, action:%U flags:%U acl: %d rule: %d", + t->scope, t->sclass, t->dclass, format_gbp_rule_action, t->action, + format_vxlan_gbp_header_gpflags, t->flags, t->acl_match, + t->rule_match); return s; } -- cgit 1.2.3-korg