summaryrefslogtreecommitdiffstats
path: root/zebra/zserv.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-02-16 01:55:56 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-03-09 17:07:41 +0100
commitfd71d73eb307096d9f14804fdac9123742d868b1 (patch)
treeedff6f7a2be125e8baa5c860aa4ec6be42af917f /zebra/zserv.c
parentlib, zebra: Add rule encoding (diff)
downloadfrr-fd71d73eb307096d9f14804fdac9123742d868b1.tar.xz
frr-fd71d73eb307096d9f14804fdac9123742d868b1.zip
zebra: Cleanup a couple of api issues
1) use uint32_t instead of u_int32_t as we are supposed to 2) Consolidate priority into the rule. 3) Cleanup the api from this. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to '')
-rw-r--r--zebra/zserv.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/zebra/zserv.c b/zebra/zserv.c
index 13936e536..007a02ced 100644
--- a/zebra/zserv.c
+++ b/zebra/zserv.c
@@ -2595,7 +2595,6 @@ static inline void zread_rule(uint16_t command, struct zserv *client,
struct interface *ifp;
struct stream *s;
uint32_t total, i;
- uint32_t priority;
ifindex_t ifindex;
s = client->ibuf;
@@ -2605,7 +2604,7 @@ static inline void zread_rule(uint16_t command, struct zserv *client,
memset(&zpr, 0, sizeof(zpr));
STREAM_GETL(s, zpr.seq);
- STREAM_GETL(s, priority);
+ STREAM_GETL(s, zpr.priority);
STREAM_GETC(s, zpr.filter.src_ip.family);
STREAM_GETC(s, zpr.filter.src_ip.prefixlen);
STREAM_GET(&zpr.filter.src_ip.u.prefix, s,
@@ -2637,7 +2636,7 @@ static inline void zread_rule(uint16_t command, struct zserv *client,
if (zpr.filter.dst_port)
zpr.filter.filter_bm |= PBR_FILTER_DST_PORT;
- kernel_add_pbr_rule(&zpr, ifp, priority);
+ kernel_add_pbr_rule(&zpr, ifp);
}
stream_failure: