]> git.proxmox.com Git - mirror_frr.git/commitdiff
bgpd: Use int encoder/decoder
authorDonald Lee <dlqs@gmx.com>
Sat, 17 Jul 2021 13:14:27 +0000 (21:14 +0800)
committerDonald Lee <dlqs@gmx.com>
Sat, 17 Jul 2021 22:32:03 +0000 (06:32 +0800)
Signed-off-by: Donald Lee <dlqs@gmx.com>
bgpd/bgp_routemap.c

index 0f4d096641654fc065b78a35cb9d59f9d384394c..abcd5e7900d613a29cb008d19754230b5549c0e8 100644 (file)
@@ -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");