]> git.proxmox.com Git - mirror_frr.git/commit - lib/zclient.c
lib, zebra: Fix last write command written
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 11 Oct 2019 12:56:39 +0000 (08:56 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 15 Oct 2019 18:54:35 +0000 (14:54 -0400)
commit6e8e0925218ad9a37e49e09bece0d9784ecdcee5
tree79069153bc848aeea363178d57999a2a77eab152
parentbfc2d8769626a9e36e25691c48a663a1075ce192
lib, zebra: Fix last write command written

With commit: a9ff90c41b0a95195d19d451ee83eb460e1599d0
the vrf_id_t was changed from a uint16_t to a uint32_t

Zebra tracked the last command sent to it's peer via peeking
into the data it was sending to each client ( since we had
lost the idea of what the command was when it was time to track
the data ).

Add a define to track this and add a bit of verbiage
to the code to allow us to notice when we screw with
the header again so that this is just fixed correctly
when it happens again.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
lib/zclient.c
lib/zclient.h
zebra/zserv.c