]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib, zebra: slight cleanup after rebase 1828/head
authorQuentin Young <qlyoung@cumulusnetworks.com>
Fri, 9 Mar 2018 22:40:16 +0000 (17:40 -0500)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Mon, 12 Mar 2018 18:57:06 +0000 (14:57 -0400)
Rebased zapi-cleanup, needs a bit of poking.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
lib/zclient.h
zebra/zserv.c

index dd9c8973fa6b2339b943f21cb347fc544df64efa..80334884440fda801eb8fc7194a909156d8467f5 100644 (file)
@@ -237,7 +237,7 @@ struct zclient {
  */
 #define ZAPI_MESSAGE_TABLEID  0x80
 
-#define ZSERV_VERSION  5
+#define ZSERV_VERSION 5
 /* Zserv protocol message header */
 struct zmsghdr {
        uint16_t length;
index 4cdb97be42c922d2f4716ddbf3fb006deec3b165..f53baf65d07d6f16bc8025d9d67f7e3d4699d655 100644 (file)
@@ -636,7 +636,7 @@ static int zsend_ipv4_nexthop_lookup_mrib(struct zserv *client,
                 * chain of nexthops. */
                for (nexthop = re->ng.nexthop; nexthop; nexthop = nexthop->next)
                        if (CHECK_FLAG(nexthop->flags, NEXTHOP_FLAG_ACTIVE))
-                               num += zsend_write_nexthop(s, nexthop);
+                               num += zserv_encode_nexthop(s, nexthop);
 
                stream_putc_at(s, nump, num); /* store nexthop_num */
        } else {
@@ -706,8 +706,8 @@ void zsend_rule_notify_owner(struct zebra_pbr_rule *rule,
        struct stream *s;
 
        if (IS_ZEBRA_DEBUG_PACKET) {
-               zlog_debug("%s: Notifying %u",
-                          __PRETTY_FUNCTION__, rule->unique);
+               zlog_debug("%s: Notifying %u", __PRETTY_FUNCTION__,
+                          rule->unique);
        }
 
        for (ALL_LIST_ELEMENTS_RO(zebrad.client_list, node, client)) {
@@ -1091,7 +1091,6 @@ stream_failure:
 }
 
 
-
 /*
  * Register zebra server interface information.
  * Send current all interface and address information.