From 62435f8ce1609ab44b2e050f210aae2a099129c5 Mon Sep 17 00:00:00 2001 From: Donald Lee Date: Sat, 17 Jul 2021 21:14:27 +0800 Subject: [PATCH] bgpd: Use int encoder/decoder Signed-off-by: Donald Lee --- bgpd/bgp_routemap.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/bgpd/bgp_routemap.c b/bgpd/bgp_routemap.c index 0f4d096641..abcd5e7900 100644 --- a/bgpd/bgp_routemap.c +++ b/bgpd/bgp_routemap.c @@ -389,13 +389,12 @@ route_match_script(void *rule, const struct prefix *prefix, void *object) struct attr newattr = *path->attr; int result = frrscript_call( - fs, routematch_function, - ("prefix", prefix), ("attributes", &newattr), ("peer", path->peer), - ("RM_FAILURE", (long long *)&status_failure), - ("RM_NOMATCH", (long long *)&status_nomatch), - ("RM_MATCH", (long long *)&status_match), - ("RM_MATCH_AND_CHANGE", (long long *)&status_match_and_change) - ); + fs, routematch_function, ("prefix", prefix), + ("attributes", &newattr), ("peer", path->peer), + ("RM_FAILURE", (int)status_failure), + ("RM_NOMATCH", (int)status_nomatch), + ("RM_MATCH", (int)status_match), + ("RM_MATCH_AND_CHANGE", (int)status_match_and_change)); if (result) { zlog_err("Issue running script rule; defaulting to no match"); -- 2.39.5